Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.

All Questions

Filter by
Sorted by
Tagged with
8 votes
3 answers
3k views

Calculate evapotranspiration

I am trying to create a code for the Basic evapotranspiration equation by Hargreaves. I have attached a screenshot of the equation to be replicated. I want to create a class wherein I can input data ...
jeronimo dcosta's user avatar
5 votes
3 answers
438 views

Python lexicon class

First time around Code Review so please be gentle (and I am happy for comments on which angles of this post are a good fit and which less so). I'm not pretty much used to software engineering in ...
matanox's user avatar
  • 151
2 votes
2 answers
336 views

Smart Mirror utilising python API's

I am making an object-oriented python project for a smart mirror running on a raspberry pi. The code receives input from API's, formats the data and displays it on the mirror. I would like to know ...
Xander's user avatar
  • 73
2 votes
0 answers
1k views

Recursively scrape links from web pages and check them

I'm new to programming and especially new to object oriented programming. I have built a web scraper using functional programming and am trying to build another using OOP principles. The overall idea ...
ron_g's user avatar
  • 121
3 votes
1 answer
67 views

Preliminary draft of a data structure for a goodies tracker

My girlfriend and I are making a goodies tracker to enable us to keep better track of our stamp/gift cards. Right now we've got a super simple Object with some fields of what a stamp card has, and no ...
cody.codes's user avatar
  • 1,975
13 votes
2 answers
797 views

A classy DNA nucleobase counter

This question is part of a series solving the Rosalind challenges. For the previous question in this series, see Counting nucleobases in a nucleotide c. The repository with all my up-to-date solutions ...
Mast's user avatar
  • 13.8k
4 votes
1 answer
150 views

Looping through multiple breadth first search test cases

I'm a new and self-taught Python programmer. I've been working my way through the Google FooBar challenges and wrote the following for the prepare_the_bunnies_escape challenge. I submitted the code ...
confusedbyclassesinny's user avatar
9 votes
2 answers
1k views

Create two vehicles, move them on a grid based on user input

I have a grid and a class Vehicle, which will have starting point(X, Y on the grid) and direction(one of N,E,S,W) taken from user and there will be commands, ...
Brandon Bishop's user avatar
-2 votes
2 answers
89 views

Python sub-process scripts

...
pylearner's user avatar
  • 127
6 votes
1 answer
3k views

Sudoku solver with Tkinter

The code below is a Sudoku solver using backtracking. There is a fast mode which doesn't display the permutations in the Tk widget in real time; only the solved grid. This is the second version of a ...
user2718378's user avatar
5 votes
2 answers
111 views

Apostle Galaxies: dict subclass with disk caching

I am an astrophysicist working on large simulations as part of the APOSTLE project. The output of the simulations I use are large (TBs) and are stored in tables spread across multiple hdf5 files. ...
Kyle's user avatar
  • 153
6 votes
2 answers
20k views

Class template for beginners

I want to allow anyone that has never coded to make classes depending on my template with little to no knowledge of Python. These classes need to do 2 things: Inherit from other classes similar to ...
tlebrize's user avatar
7 votes
1 answer
183 views

Scrape points from CTF sites

I am relatively new to classes. This one uses one. I am pretty sure this is not the correct way to do this. But I also do not know the correct way. You can use the ...
Tristan's user avatar
  • 183
3 votes
1 answer
633 views

Drawing a planetary system in Pygame

I am new to programming and mostly self-taught by following a few MOOCs and doing little projects. I have reached the point where I am trying to develop more complicated programs (numerical models at ...
Sorade's user avatar
  • 223
3 votes
1 answer
111 views

Emulating super() in Python 3.x using Python 2.7

Depending on the name of the first argument, self.__sup or cls.__sup behaves like super() in ...
nalzok's user avatar
  • 503

15 30 50 per page