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,941
» Latest member: Littlefish
» Forum threads: 38,723
» Forum posts: 175,517

Full Statistics

Online Users
There are currently 41 online users.
» 1 Member(s) | 35 Guest(s)
Bing, AOL, AOL, Google, Mojeek, deanhystad

Latest Threads
A coding beginner needs h...
Forum: General Coding Help
Last Post: paul18fr
3 hours ago
» Replies: 1
» Views: 150
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
7 hours ago
» Replies: 8
» Views: 309
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 4,500
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 894
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Sep-19-2025, 12:30 PM
» Replies: 1
» Views: 3,713
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,244
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,772
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,568
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,670
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,855

 
  Tic Tac Toe using Tkinter
Posted by: dmacch24 - Mar-26-2018, 10:53 PM - Forum: GUI - No Replies

I'm trying to write a program using Tkinter that makes the computer play against you. In this code, the computer wins everytime using the minimax algo..... More

Print this item

  A little idea to remember wxPython classes
Posted by: Sebastian_Adil - Mar-26-2018, 10:23 PM - Forum: GUI - No Replies

wxPython is rich in classes and in the aim to remember some of them I tried this example, please tell me what do you think Big Grin

[attachmen..... More


Attached Files

Thumbnail(s)
   
Print this item

  TypeError: get_formatted_name() missing 1 required positional argument: 'last_name'
Posted by: tjnichols - Mar-26-2018, 08:57 PM - Forum: General Coding Help - Replies (4)

This is my code...

[python]def get_formatted_name(first_name, middle_name, last_name):
"""Return a full name, neatly formatted."""
..... More

Print this item

  True or false if running something?
Posted by: Artdigy - Mar-26-2018, 06:43 PM - Forum: General Coding Help - Replies (4)

Hi, there! I'm writing a program as a project and it is meant to assist users with simple tasks. I have my own set of commands that I have made global..... More

Print this item

  User Input to Choose from Dictionary
Posted by: anelliaf - Mar-26-2018, 06:31 PM - Forum: General Coding Help - Replies (9)

Hello,

I'm looking to post a list of databases from a dictionary, then from the user input choose which database they want to connect.

[python]..... More

Print this item

  Don't understand why this quicksort code works
Posted by: lupoalberto - Mar-26-2018, 03:42 PM - Forum: General Coding Help - Replies (6)

Hi, here there's a quicksort code in Python 3.
It works but my problem is this: i understand what the partition function makes, but i don't understand..... More

Print this item

  Rock, Paper, Scissors Help
Posted by: jyou99 - Mar-26-2018, 03:22 PM - Forum: General Coding Help - Replies (1)

I am trying to code a rock, paper, scissors game but am struggling with the final step. When I run the module, it does everything up to showing what t..... More

Print this item

  fsolve
Posted by: Mahdi1994 - Mar-26-2018, 01:42 PM - Forum: General Coding Help - No Replies

Hi, I'm going to plot each variables - x and y - over a period of time. Would you please help me?
Thank you.

[python]def f(z):
x = z[0]
..... More

Print this item

  Randomly changing numbers
Posted by: NicoConti - Mar-26-2018, 11:30 AM - Forum: General Coding Help - Replies (4)

Hello, this is my first post here. I come from an art background and am an extremely interesting in intersecting both art and programming.
I am curr..... More

Print this item

  a __class__ syntax error
Posted by: aaron1989041 - Mar-26-2018, 09:16 AM - Forum: General Coding Help - Replies (1)

I'm learning the __class__ property,but when I try to execute code below,a syntax error raises:
print(1.__class__)
from my opinion,in python,ever..... More

Print this item

  How to used the edge detection in opencv python to return number of edge?
Posted by: Vivian - Mar-26-2018, 05:12 AM - Forum: Homework - Replies (2)

Hi I have the following picture, how to use edge detection to return the result which is equal to 4?[Image: zDRxA.jpg]

Print this item

  decorators within decorators
Posted by: mp3909 - Mar-26-2018, 04:57 AM - Forum: General Coding Help - Replies (6)

I am trying to build decorators within decorators.
I thought I take the example I have discussed previously.
I have a function that multiplies x and..... More

Print this item

  iincomplete terators
Posted by: Skaperen - Mar-26-2018, 03:08 AM - Forum: General Coding Help - Replies (7)

i would like to iterate over an iterator and then deal with it (the iterator itself), such as return it, in its incomplete (not iterated all the way) ..... More

Print this item

  IndexError: tuple index out of range
Posted by: Truman - Mar-25-2018, 10:57 PM - Forum: General Coding Help - Replies (5)

[python]
tp=(1,2,3,4,5,6,7,8,9,10)
for i in tp:
lt = []
if tp[i]%2 == 0:
lt.append(tp[i])
else:
pass
tp2 = tuple(lt)..... More

Print this item

  execute function at a certain time
Posted by: StevenLewis - Mar-25-2018, 08:41 PM - Forum: General Coding Help - No Replies

Hi guys
I'm new at Python and programming, so I found myself with difficulties at it.
As I wrote in the subject, I'm trying to run a function at a c..... More

Print this item

  Questions abou Web-scraping part-2 Tutorial
Posted by: ljmetzger - Mar-25-2018, 07:24 PM - Forum: Web Scraping & Web Development - Replies (2)

Thank you for an excellent tutorial.

I had to make two changes to make the Selenium (How Secure is Your Password?) example at the bottom of the tut..... More

Print this item

  Looping and naming multiple files
Posted by: revo - Mar-25-2018, 05:00 PM - Forum: Web Scraping & Web Development - Replies (4)

Hi Big Grin

I'm writing to see if you guys can help me take my code to the next level.

As it is now it takes a list of urls from a CSV fi..... More

Print this item

  School python program task help
Posted by: TommyLee - Mar-25-2018, 01:54 PM - Forum: Homework - Replies (3)

Hi all.

My daugther has Python proggraming task for homework. It might be simple, but since she was ill at time when they learned about that , she ..... More

Print this item

  Hashing big files
Posted by: wavic - Mar-25-2018, 12:24 PM - Forum: News and Discussions - Replies (8)

I have to hash big files and even with fast algorithms, it takes a lot of time. Regular hdd, not ssd storages. I've tried the usual way but it is slow..... More

Print this item

  elif and if
Posted by: jlgeter2002 - Mar-25-2018, 12:20 PM - Forum: General Coding Help - Replies (4)

this code works fine except the last elif

elif age >= '100' and name != 'Alice':
print('you are not alice grannie')
If I enter any value be..... More

Print this item

  python age calculator need to find the number of years before they turn 100 not using
Posted by: orangevalley - Mar-25-2018, 09:10 AM - Forum: Homework - Replies (4)

[font=Times New Roman, Times, serif]
I am new at python and i'm trying to teach myself the best way i can. So i will make noob mistakes. I was wonderi..... More

Print this item

  Tkinter Font Color
Posted by: notsolowki - Mar-25-2018, 07:22 AM - Forum: GUI - Replies (11)

im very very new to python and im trying to change the font color of a very basic tkinter gui. what the script does is read a text file and display it..... More

Print this item

  Multiple Windows
Posted by: jarrod0987 - Mar-25-2018, 03:50 AM - Forum: General Coding Help - No Replies

If I wish to be able to run 2 different python scripts at the same time in 2 different windows, can I do this?
Also, is there a way to run a script o..... More

Print this item

  mro
Posted by: Skaperen - Mar-25-2018, 12:50 AM - Forum: News and Discussions - Replies (4)

what do the initials "mro" mean in the class attribute .__mro__? i'll make a guess and say that "m" means "[u]multi[/u..... More

Print this item

  Recurse through n-dimensional array
Posted by: ColdDeath - Mar-24-2018, 11:18 PM - Forum: Data Science - Replies (2)

Hi all,

I'm learning the basics of Python (and programming). I'm aware that Numpy exists and I eventually will (have to) use it, but I don't want to ..... More

Print this item

  Download from youtube
Posted by: antonbison - Mar-24-2018, 09:47 PM - Forum: General Coding Help - Replies (7)

Hello!
I am trying to download video from youtube from.... to

But my attempt does not work

[python]import pytube
link = "https://www.youtube.com/wat..... More

Print this item

  Community Project: Python Arcade Collab
Posted by: Mekire - Mar-24-2018, 09:29 PM - Forum: Game Development - Replies (3)

2-ish years ago we had a pretty successful group project here called pyrollers where users wrote casino style games:
https://github.com/iminurnamez..... More

Print this item

  urllib request urlopen?
Posted by: nutgut - Mar-24-2018, 07:30 PM - Forum: Web Scraping & Web Development - Replies (4)

Hi,

I have build a small program with Python3. I'm using urllib.request.urlopen() to download csv files from an open API.
I save the files with fi..... More

Print this item

  Simple newbie Q
Posted by: Darkish - Mar-24-2018, 07:04 PM - Forum: Web Scraping & Web Development - Replies (4)

I'm new to python so hope this is really simple.

import bs4 as bs
import urllib .request

saurce = urllib .request.urlopen("https://www.premierl..... More

Print this item

  Bytearray questions
Posted by: mattps - Mar-24-2018, 06:02 PM - Forum: General Coding Help - Replies (2)

Hi,

I am currently neck deep in my first Raspberry Pi/NFC project and need some advice with a Python bytearray. When reading the contents of a Clas..... More

Print this item

  Wifi.Scan
Posted by: thenewguy - Mar-24-2018, 05:59 PM - Forum: General Coding Help - No Replies

Hello Forum World!

I am trying to get the hang of the Python language and am having some difficulties.

I am attempting to try to connect to a gi..... More

Print this item

  CSV file into a python list is not completely imported
Posted by: socertis - Mar-24-2018, 05:36 PM - Forum: Data Science - Replies (4)

i want to read a csv file into a python list. sometimes, it produces an

Error:
IOError: [Errno 0]
i have searched a lot and tried to use fl..... More

Print this item

  multi-processing
Posted by: dR_Garuby - Mar-24-2018, 03:32 PM - Forum: General Coding Help - Replies (1)

I've created a GUI with tkinter where you can enter 5 inputs and send them whenever you want by pressing a button. Now I want to give a limit of time ..... More

Print this item

  submit element from a list into a post request
Posted by: Godzilla - Mar-24-2018, 02:35 PM - Forum: Web Scraping & Web Development - No Replies

Hello everybody,

I'm a Python beginner and I have no idea on how to solve this problem

I create a variable called list_id with several customer ..... More

Print this item

  A toy for my son
Posted by: RailRoaded - Mar-24-2018, 02:32 PM - Forum: Game Development - Replies (4)

So first a little bit of backgroud on me, Im pretty good with hardware, breadboards, and laying out circuits. I have not done much coding at all since..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  A coding beginner needs h... 3 hours ago Littlefish paul18fr General Codin...
  Using a For Loop to subtr... 7 hours ago Anunderling deanhystad General Codin...
  403 Error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  Scraping a page with log ... 09-19, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
Most views
  The best Prog... 576563
  Tutorial Requ... 498545
  Web Scraping ... 440432
  Newbie with P... 384334
  New Users Int... 367537
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+ 12087
buran 8175
snippsat 7368
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Littlefish Today
Noya_Yonatan Yesterday
Saipython555 Yesterday
Anunderling Yesterday
Monir Yesterday

User Panel Messages

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