Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,988
» Latest member: markwood955
» Forum threads: 38,736
» Forum posts: 175,579

Full Statistics

Online Users
There are currently 56 online users.
» 0 Member(s) | 50 Guest(s)
Bing, AOL, Google, Mojeek, Applebot

Latest Threads
print does not open conso...
Forum: General Coding Help
Last Post: Pedroski55
3 hours ago
» Replies: 2
» Views: 82
Weird failure in Selenium
Forum: General Coding Help
Last Post: glestwid
9 hours ago
» Replies: 0
» Views: 40
Fred Economic Data API
Forum: Web Scraping & Web Development
Last Post: Trickety
Yesterday, 03:05 PM
» Replies: 3
» Views: 2,529
create ocr to detect lice...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:58 PM
» Replies: 2
» Views: 92
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:56 PM
» Replies: 6
» Views: 197
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Oct-01-2025, 03:05 AM
» Replies: 4
» Views: 2,046
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 462
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,090
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,165
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 846

 
  Syntax not exist
Posted by: noorpy - Nov-14-2019, 08:39 AM - Forum: General Coding Help - Replies (1)

Hi! Please help me. I got python 3.xx and I got error message "Syntax is not exist" for line 20. please help.


#!/usr/bin/env python2

#Linux ..... More

Print this item

  Subtract 11 from entire list of quoted numbers
Posted by: Pleiades - Nov-14-2019, 08:00 AM - Forum: General Coding Help - Replies (1)

Hi I really need to subtract 11 just from every quoted number in the list. I have looked every where for help on this topic except here so I hope som..... More

Print this item

  How to cluster dataset
Posted by: neha_garg - Nov-14-2019, 07:38 AM - Forum: Data Science - No Replies

Dear Friends,

I am trying clustering of dataset, however my code is ploting centroid but I didn't find the way to plot clusters and store the data ..... More

Print this item

  Fetching hindi hashtags using python
Posted by: neha_garg - Nov-14-2019, 07:27 AM - Forum: Data Science - Replies (1)

Dear Friends,
I wish to extract hindi hashtags from tweeter. Have used unicode-escape also but I am not getting success.

Please help me.

Print this item

  turning my function into a context manager
Posted by: Skaperen - Nov-14-2019, 05:43 AM - Forum: News and Discussions - Replies (2)

i have a function named "cd()". called with a directory name, it changes the process current working directory to that directory. called with no arg..... More

Print this item

  Help with Code!
Posted by: Than999 - Nov-14-2019, 04:26 AM - Forum: Homework - Replies (4)

Hi I am trying to calculate the median, or average for the list "numbers", excluding the negative numbers in this list. My question is how do I iterat..... More

Print this item

  Rotation Problem in PyGame
Posted by: thunderbird028 - Nov-14-2019, 02:35 AM - Forum: Game Development - Replies (1)

I tried to recreate Flappy Bird using pygame and everything works properly except for the rotation of the Flappy Bird.

The rotated image increases ..... More

Print this item

  Start a full screen window
Posted by: marted - Nov-14-2019, 12:44 AM - Forum: General Coding Help - Replies (4)

Hi. I’m looking for a way to start a full screen window (an image or a photo)which will cover the haul screen and the user won’t be able to close it. ..... More

Print this item

  Question about Sorting a List with Negative and Positive Numbers
Posted by: Than999 - Nov-14-2019, 12:32 AM - Forum: Homework - Replies (2)

Hi, I'm trying to sort this "List' of values that contains both negative and positive numbers. I'm trying to sort in numerical order from least to the..... More

Print this item

  Looking for advice and Guidance on Exceptions used within Functions
Posted by: paul41 - Nov-13-2019, 10:45 PM - Forum: General Coding Help - Replies (1)

I understand the basics on Exception handling. However, I am simply looking for the correct way of using the Exception handling when it comes to also..... More

Print this item

  Web Scraping on href text
Posted by: Superzaffo - Nov-13-2019, 10:32 PM - Forum: Web Scraping & Web Development - Replies (11)

Hello to all.
I'm new to python but I would like to use it to do scraping on a website.
I need to search for a name within the text part of an ancho..... More

Print this item

  Need help with this project / Beginner
Posted by: kurwa97 - Nov-13-2019, 09:53 PM - Forum: General Coding Help - Replies (2)

MY CODE--> I know i have to float the string somehow but i can't. And i don't know how. Also when it comes to the if statements I've understood that i..... More

Print this item

  Randomly selecting sprite from group?
Posted by: michael1789 - Nov-13-2019, 09:37 PM - Forum: Game Development - Replies (5)

I want to add items to my random dungeon. I'm thinking to select a sprite at random from my group of floor tiles and use it's location as a spawn loc..... More

Print this item

  How I can communicate Virutal GNS3 topology and real network ?
Posted by: looney99 - Nov-13-2019, 08:11 PM - Forum: Networking - No Replies

Hi I have a GNS3 topology(bottom photo).My local pc already communicate virtual gns3 topology . I want virtual ubuntu(192.168.44.131) at picture and ..... More

Print this item

  Graphing from a while loop
Posted by: McDweevo - Nov-13-2019, 07:23 PM - Forum: General Coding Help - Replies (1)

I'm quite new to programming, and I'm trying to compare the decay of atoms with a Monte Carlo random.random() function against an analytical solution...... More

Print this item

  input string split
Posted by: Eric7Giants - Nov-13-2019, 06:12 PM - Forum: General Coding Help - Replies (3)

Hello. Self-teaching and new to Python. I am trying to code a program where I ask a user for 2 points and attempt to calculate the distance. I keep ru..... More

Print this item

  Problem with variables
Posted by: JCB - Nov-13-2019, 06:09 PM - Forum: General Coding Help - Replies (3)

So yeah, I'm trying to make a simple randomized generator in Python for my own-design board game but I found a problem. To be more specific, I want to..... More

Print this item

  Mad Libs Program
Posted by: theguywithcurls - Nov-13-2019, 04:41 PM - Forum: General Coding Help - Replies (10)

Hey everyone!

I'm working on my first python project on my own and decided to take on building a Mad Libs Program. I have a directory of possible s..... More

Print this item

  manipulating a dataframe - pandas
Posted by: nsx200 - Nov-13-2019, 03:19 PM - Forum: Data Science - Replies (2)

Hello,

Whilst this is an assignment, I thought I would post in this forum page as it is pandas related...

I have a rubbish dataframe to use that..... More

Print this item

  docx module alternatives
Posted by: Clunk_Head - Nov-13-2019, 03:12 PM - Forum: General Coding Help - No Replies

I'm reading all of the text from a word document(docx).
Until upgrading to 3.8 the docx module has done a fine job, but today I ran into a compound is..... More

Print this item

  Error building wheel for grpcio on win10
Posted by: Topiii - Nov-13-2019, 02:46 PM - Forum: General Coding Help - Replies (1)

C:\WINDOWS\system32>python -m pip install --upgrade google-assistant-sdk[samples]
[output]Collecting google-assistant-sdk[samples]
Using cached ht..... More

Print this item

  Machine Learning Polynomial Regression
Posted by: braveYug - Nov-13-2019, 11:41 AM - Forum: Data Science - No Replies

Hello All,

I am facing some problem while implementing polynomial regression for my machine learning module. Part of my code is as below:
[python..... More


Attached Files

Thumbnail(s)
   
Print this item

  Matrix understanding in Python
Posted by: RavCOder - Nov-13-2019, 11:35 AM - Forum: Homework - Replies (16)

Hi,
this is text of exercise:
[quote]Given a 2D grid, each cell is either a zombie 1 or a human 0. Zombies can turn adjacent (up / down / left / rig..... More

Print this item

  what workspace is my terminal in?
Posted by: Skaperen - Nov-13-2019, 08:31 AM - Forum: Code sharing - Replies (7)

this script is intended for a Posix environment. it was developed and tested in Xubuntu 18.04 LTS with Python 3.6.8.[python]#!/usr/bin/env python3
#..... More

Print this item

  Problem with importing and using collections module
Posted by: pythomdummy - Nov-13-2019, 06:24 AM - Forum: General Coding Help - Replies (3)

Greatings,

I am a new to python and actually whole concept of programming.

Since last one one month i have been working hard but getting stuck ..... More

Print this item

  Is Python a solution
Posted by: trentban - Nov-13-2019, 05:50 AM - Forum: News and Discussions - Replies (1)

Hi All

Before going down a long path would Python be a possible solution for this...

I have an excel model that needs to forecast future data af..... More

Print this item

  Global Variable in Event Function? What am I doing wrong here?
Posted by: p_hobbs - Nov-13-2019, 05:39 AM - Forum: GUI - Replies (1)

I'm using tkinter to create a data entry form, and I'm having issues with getting the state of a checkbutton. So I determined the simplest way is to s..... More

Print this item

  Extracting Text
Posted by: Evil_Patrick - Nov-13-2019, 05:08 AM - Forum: General Coding Help - Replies (6)

So I have a text file. containing around 400 lines of my Instagram following info like Email:username:posts
I want to extract all the usernames int..... More

Print this item

  delete from list
Posted by: metro17 - Nov-13-2019, 04:28 AM - Forum: General Coding Help - Replies (8)

how do I delete values from a list taking user input ?
>>> animals = [a,c] = [1,2]
>>> print(a)
1
>>> print©
2
>>> print(animals)
[1, 2]
>>>..... More

Print this item

  Why does pycharm return nothing when Python interpreter does?
Posted by: Jessy - Nov-13-2019, 04:26 AM - Forum: News and Discussions - Replies (3)

I'm trying to make a class that makes dictionaries which have index system just like lists. The problem comes with __repr__, for some reason it return..... More

Print this item

  Issue to read commands with pyvisa
Posted by: losc - Nov-13-2019, 04:10 AM - Forum: General Coding Help - No Replies

Hello,

I am trying to communicate with a piezoelectric controller. The communication is fine, as I can read the correct set values of the parameter..... More

Print this item

  Python in Kali Linux
Posted by: coolcassie - Nov-13-2019, 12:50 AM - Forum: General Coding Help - Replies (2)

Hi, I'm new to this forum so apologies if this is in the wrong part of the forum.

I'm using Kali Linux and am running it on VirtualBox. I've create..... More

Print this item

  Question with Code
Posted by: Than999 - Nov-13-2019, 12:30 AM - Forum: Homework - Replies (4)

Hi, why is my code; "str(input('Enter a plan: ; plan)) giving me a syntax error? I thought this syntax is perfectly legal in Python.

[Python]
plan..... More

Print this item

  Setting Tabs in a listbox
Posted by: scratchmyhead - Nov-12-2019, 10:42 PM - Forum: General Coding Help - Replies (2)

I'm using Python 3.8 and using Tkinter. I'm trying to set tabs inside of a listbox. I have the following code:

[python]
for record in records:
..... More

Print this item

  Is my heap sort optimized?
Posted by: Clunk_Head - Nov-12-2019, 08:21 PM - Forum: Code sharing - Replies (1)

It's been a long time since I made my first heap sort algorithm.
I'm looking for optimization tips for this one that I put together this morning.
[pyt..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  print does not open conso... 3 hours ago Tycho_2025 Pedroski55 General Codin...
  Weird failure in Selenium 9 hours ago glestwid glestwid General Codin...
  Fred Economic Data API Yesterday, 15:05 warrior42 Trickety Web Scraping ...
  create ocr to detect lice... Yesterday, 13:58 bimosora noisefloor General Codin...
  Parse Markdown / get the ... Yesterday, 13:56 SpongeB0B noisefloor General Codin...
  Error: cannot mix str wit... 10-01, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... 09-30, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
Most views
  The best Prog... 577475
  Tutorial Requ... 501302
  Web Scraping ... 441103
  Newbie with P... 385163
  New Users Int... 369878
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12092
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
markwood955 Yesterday
DerekGeel Yesterday
Tycho_2025 Yesterday
chikkamagalur Yesterday
Costa Yesterday

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020