Tagged Questions
7
votes
3answers
242 views
Simple MPG calculator in Python
I am a self taught coder taking a Programming Fundamentals class to work towards a degree. It's based on Python, which I'm not as familiar with as other languages. I added error handling like I would ...
4
votes
0answers
64 views
A general purpose GUI data input, with validation, but unclear about best object design
When I'm throwing together prototype code, I don't want to spend extra time setting up parameters, or chasing down problems from entering parameters wrongly. So this is a general purpose, fairly easy ...
3
votes
1answer
129 views
ISBN Number Check
I’ve recently coded a way of checking a 10-digit ISBN.
I was wondering if the code works to check the numbers, and if there are any flaws in my code.
...
3
votes
1answer
62 views
Class for file creation and directory validation
After reading some texts regarding creation of files under Python, I've decided to create this class which creates a new file on a directory, and creating a backup on the other directory if the file ...
1
vote
2answers
60 views
Validate fields in Python dictionary using dictionary of lambdas
I would love some feedback on this. I use it to validate web-form objects before persisting them in the dangerously-lazy MongoDb. I have a class and many validators for each of my collections. Is ...
1
vote
1answer
1k views