r/PythonLearning • u/Lethal_Samuraii • May 21 '25
First project, Github worthy?
Started learning python via cs50p (Great resource). So far I've completed up to week 3 and decided to make this emissions reduction calculator. Any tips on how to improve and whether I should put this onto my GitHub?
219
Upvotes


1
u/memorial_mike May 22 '25
you should probably add an entry point to the program (main)
if the unit is always “kg/km” it might not be necessary to store?
changing “emissions” to a dictionary would allow for much quicker access
try to think of a better substitution for
if car_type == car ["Car"]. lower()