Skip to main content

New answers tagged

2 votes

Beginner python program to get data from string

My review will focus on the parsing logic. months_of_year and days_of_week should be deleted. ...
Reinderien's user avatar
  • 71.2k
2 votes

Beginner python program to get data from string

strftime() ...
J_H's user avatar
  • 43.3k
3 votes
Accepted

Create Frame Widget with Pygame

skipped events ...
J_H's user avatar
  • 43.3k
3 votes

Create Frame Widget with Pygame

I have just read the code and made no attempt to run it, so this is a high level overview but some things are visually obvious. DRY (do not repeat yourself) In function ...
Kate's user avatar
  • 8,778
2 votes

Python 3 tkinter calculator

It's a small note, but let's take this: self.number_buttons = [] And this: ...
Chris's user avatar
  • 6,126
1 vote

Python 3 tkinter calculator

Portability I get syntax errors due to illegal indentation: def bind_keys(self): """ Binds events to keyboard button presses. """ The ...
toolic's user avatar
  • 16.4k
3 votes

Catch the turtle - Python

Overall, this looks good! Here are my suggestions, which are a bit more specific to the turtle library than the existing review: Use onkeypress rather than ...
ggorlen's user avatar
  • 4,197
0 votes

Calculate the median value of combining two sorted lists

Let's break the merging of two lists out into a function. And for fun, let's have the function return an iterator rather than eagerly working on both lists. ...
Chris's user avatar
  • 6,126
1 vote

Python project to scrape webpages and build text datasets for ML purposes

Returning None If we look at download_text there is an opportunity. ...
Chris's user avatar
  • 6,126

Top 50 recent answers are included