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,992
» Latest member: maribita
» Forum threads: 38,736
» Forum posts: 175,580

Full Statistics

Online Users
There are currently 64 online users.
» 0 Member(s) | 61 Guest(s)
Google, Bing, AOL

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

 
  unittest mock and patch
Posted by: piscvau - Nov-08-2019, 02:55 PM - Forum: General Coding Help - Replies (1)

Hello
I have been coding in python for about a year and I still have very much problem with unittest mock and patch framework. I do not know if this ..... More

Print this item

  could not fix unexpected indent
Posted by: Bayan - Nov-08-2019, 01:08 PM - Forum: General Coding Help - Replies (1)

[align=left]Hello there,
I'm using Spyder anaconda program to have hand web browser. but unfortunately I got "IndentationError: unexpected indent" an..... More

Print this item

  While loop in list
Posted by: TheGhostKnight - Nov-08-2019, 12:38 PM - Forum: Homework - Replies (2)

Hello!

I'am currently taking a programming course in school and we have a project that is individual and we can't ask our teacher for help but we c..... More

Print this item

  Sum char word dictionary
Posted by: RavCOder - Nov-08-2019, 11:38 AM - Forum: General Coding Help - Replies (3)

I have a dictionary that gives me a letter of the alphabet as a key and a number that corresponds to the position of the letter of the alphabet.
[quo..... More

Print this item

  random selection of song and artist not working
Posted by: Unknown_Relic - Nov-08-2019, 11:36 AM - Forum: General Coding Help - Replies (2)

im trying to select a random song in a file then find the position and match it with the artist in a separate file in python 3.7.3. Two files called s..... More

Print this item

  I need litte help with linking to another website.
Posted by: darktitan - Nov-08-2019, 08:48 AM - Forum: Web Scraping & Web Development - Replies (3)

Hi.
I need little help with linking to another website.
Now i know how to make a link in html and use return redirect in route to link.
But my pro..... More

Print this item

  Pagination
Posted by: prejni - Nov-08-2019, 08:36 AM - Forum: Web Scraping & Web Development - Replies (2)

Hello there,
I am working on my first Webscraper and have a problem with the pagination of the Website i want to crawl.

This is my code so far:..... More

Print this item

  Which IDE comes with help ?
Posted by: tonycstech - Nov-08-2019, 05:28 AM - Forum: News and Discussions - Replies (7)

I am newb to python. I am used to AutoTI programming that as help file thats no match to any help file on earth.
If you hover over a function and pre..... More

Print this item

  PYGAME draw ball
Posted by: gean - Nov-08-2019, 02:51 AM - Forum: Game Development - Replies (1)

Hi everyone,
I am working on a game with python 3.6 and PYGAME and with the Geany 1.36 text editor.

It is a game where a ball falls randomly from ..... More

Print this item

  Multithreading dynamically syncronism
Posted by: Rodrigo - Nov-08-2019, 02:33 AM - Forum: General Coding Help - No Replies

Hi there, I have n threads named as: E1, E2, E3, ... And additionally another m number os threads named as: C1, C2, C3, ... The (C ) type threads are ..... More

Print this item

  Occurence
Posted by: Adem - Nov-07-2019, 10:29 PM - Forum: General Coding Help - Replies (3)

Hi, I want to print the occurence of each item . For example, you want 5 items in (1,1). Instead of printing 1,1,1,1,1 ; I want it to print 1:"5". I'm..... More

Print this item

  Mock call to subprocess.Popen failing with StopIteration
Posted by: tharpa - Nov-07-2019, 08:44 PM - Forum: General Coding Help - Replies (7)

A unit test that I have inherited is now failing on

[python]p = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE)
logging.warning('Not..... More

Print this item

  How to use switch/case in python?
Posted by: newbieguy - Nov-07-2019, 06:35 PM - Forum: General Coding Help - Replies (9)

Hi everyone! If you can see, I am totally newbie in python.
I want to create easy calculator used with switch/case statement.
My idea is:
[python]..... More

Print this item

  Explaining Code
Posted by: kozaizsvemira - Nov-07-2019, 06:30 PM - Forum: General Coding Help - Replies (2)

Hi,

As I am learning python I am wondering about following code:

[python]openList = ['[', '{', '(']
closeList = [']', '}', ')']

def check(S..... More

Print this item

  How to use python 3.x instead of 2.x?
Posted by: AndrzejB - Nov-07-2019, 06:16 PM - Forum: General Coding Help - Replies (4)

I have Linux Mint and python 3.6 already installed.
If I call "python" , Python 2.7.15 is called. If I call with -3, is the same and option -2 is not..... More

Print this item

  Conditional not processing as intended (Colt Steele’s Udemy course)
Posted by: Drone4four - Nov-07-2019, 04:10 PM - Forum: General Coding Help - Replies (3)

I’m trying to choose one element at random from a list with 6 food items and then categorizes the randomly selected item as either fruit, vegetable or..... More

Print this item

  Print string in a single line
Posted by: RavCOder - Nov-07-2019, 03:02 PM - Forum: General Coding Help - Replies (8)

[python]
'''
Write a program (using functions!) that asks the user for a long string containing multiple words. Print back to the user the same stri..... More

Print this item

  Help with basic webscraping
Posted by: Captain_Snuggle - Nov-07-2019, 02:33 PM - Forum: Web Scraping & Web Development - Replies (2)

Hi guys,
I have recently started learning Python, and have now started learning webscraping with BeautifulSoup. The following code is not working for..... More

Print this item

  beginner - object has no attribute
Posted by: gean - Nov-07-2019, 09:39 AM - Forum: Game Development - Replies (2)

Hi everyone,
I am working on a game with python 3.6 and PYGAME and with the Geany text editor.
The problem is in the last line. Can someone please e..... More

Print this item

  equation
Posted by: MathisDELAGE - Nov-07-2019, 09:25 AM - Forum: General Coding Help - Replies (5)

Hello,
I'd like to fix an equation with this program is what it would be possible to please
[python]
# coding:utf-8


équation = str(input("sais..... More

Print this item

  ValueError: Found input variables with inconsistent numbers of samples: [5, 6]
Posted by: bongielondy - Nov-07-2019, 03:26 AM - Forum: Data Science - Replies (6)

I am working on a small test data. I am getting a ValueError: Found input variables with inconsistent numbers of samples: [5, 6]. How can I make the X..... More

Print this item

  memory issue loading movie to numpy array
Posted by: djf123 - Nov-07-2019, 01:31 AM - Forum: Data Science - Replies (1)

I have a movie, .mts file, that I want to be able to read into a numpy array that is (w,h,3,f), where w is the frame's width, h its height, and f the ..... More

Print this item

  TensorFlow get error - array with more than one element is ambiguous
Posted by: vokoyo - Nov-07-2019, 01:20 AM - Forum: Data Science - Replies (3)




The experiment is carried out on Windows 10 Pro Intel ® Core ™ i5-4590 CPU @ 3.3 GHz, based on the platform of Anaconda with Spyder ..... More

Print this item

  Keyword can't be an expression
Posted by: fcktheworld587 - Nov-06-2019, 11:23 PM - Forum: General Coding Help - Replies (2)

In the following module, IDLE refuses to run it, siting "Keyword can't be an expression" and highlights the ( on the righthand side of AthleteList ins..... More

Print this item

  Running tests in a sibling directory to code
Posted by: sodhiar - Nov-06-2019, 10:59 PM - Forum: General Coding Help - Replies (1)

In a shared root, I have a src and a tests folder. When from that root I run pipenv run pytest ., I get the error that my auth module..... More

Print this item

  Super easy beginner question
Posted by: AkulaLA - Nov-06-2019, 10:26 PM - Forum: General Coding Help - Replies (3)

Hello new to the forum and new to python,

my questions are:
- In step 3 of the below code why is 'members' recognized as a what i am guessing Boolea..... More

Print this item

  Still working with dicts
Posted by: menator01 - Nov-06-2019, 09:49 PM - Forum: General Coding Help - Replies (2)

Given the current dict and data structure, doing a search for chicken pulls all recipes for chicken. If I wanted to refine that search for bourbon chi..... More

Print this item

  send all pictures instead of just two
Posted by: mcgrim - Nov-06-2019, 09:35 PM - Forum: Networking - Replies (10)

The server is supposed to send all pictures from a folder to the client.
By changing the number inside of the parenthesis of s.recv() in the client s..... More

Print this item

  Roman Numeral Ordered List? (first post)
Posted by: CopperyMarrow15 - Nov-06-2019, 09:05 PM - Forum: General Coding Help - Replies (1)

Hello...
I'm trying to make a program that creates an ordered list marked by several different pieces of text (like in html if anyone here uses that)..... More

Print this item

  hangman doesn't end after guessing the word
Posted by: vinci - Nov-06-2019, 09:02 PM - Forum: Game Development - Replies (3)

Hi,

I should say from the beginning that I'm very new in Python. I've been following a video tutorial where hangman is being tested. I've got the f..... More

Print this item

  Turkish Character Prohibition
Posted by: JgKSuperstar - Nov-06-2019, 07:58 PM - Forum: General Coding Help - Replies (3)

Hi, i'm learning Python, but there are some places where I have problems. I would like to ban the use of Turkish characters. But Somewhere I'm making ..... More

Print this item

  Can't seem to get the current state of a checkbutton.
Posted by: p_hobbs - Nov-06-2019, 07:52 PM - Forum: GUI - Replies (6)

Hello everyone. I'm pretty new to Python, so this is probably basic. I have tried about a million different things, and have gone though everything I ..... More

Print this item

  resample grouping pr0blem
Posted by: olufemig - Nov-06-2019, 07:41 PM - Forum: General Coding Help - Replies (1)

i have a scenario in which i have a dataframe which contains 3 columns ( date, product_id and sales_amt)

the dates are supposed to span a whole mon..... More

Print this item

  file directory
Posted by: linards - Nov-06-2019, 07:27 PM - Forum: General Coding Help - Replies (3)

newbie here - please be gentle :)

Having a path error when trying to run a file in the terminal

Path:
/Users/linardsberzins/Desktop/weatherterm..... More

Print this item

  cacul in variable
Posted by: MathisDELAGE - Nov-06-2019, 05:18 PM - Forum: General Coding Help - Replies (2)

hello,
I'd like to do an operation in a variables like

1.calcul = input("enter a calculation: ")
2.x = 1
3.print(calcul)

>>>enter a calculati..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Weird failure in Selenium 2 hours ago glestwid Larz60+ General Codin...
  print does not open conso... 7 hours ago Tycho_2025 Pedroski55 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... 577477
  Tutorial Requ... 501326
  Web Scraping ... 441103
  Newbie with P... 385163
  New Users Int... 369892
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+ 12093
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
maribita Today
AnalystRobert Today
Safariscampoea Today
DataAnalytics021 Today
markwood955 Yesterday

User Panel Messages

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