All Questions
37 questions
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
-2
votes
2
answers
89
views
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 ...
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. ...
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 ...
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 ...
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 ...
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 ...