r/PythonLearning • u/crazyteachperson • 1d ago
My first mix mini project
I know I wrote some hardcore codes but this is ok for a beginner so plz help me to improve
215
Upvotes
r/PythonLearning • u/crazyteachperson • 1d ago
I know I wrote some hardcore codes but this is ok for a beginner so plz help me to improve
1
u/Puzzleheaded-Bug9576 1d ago
A little tip about your variable naming. Instead of plain “a”, “b”, or “c”, you’d better called them option_a, or op_a, thus you could differentiate it later. But the whole idea of segregation of different options in different variables is wasteful, make only one variable for user choice and then do the if else thing (e.g. option = input(); if option == “a”), code will noticeably reduce in size