Hello i'm rather new to Python and I was wondering how I could do a menu to prompt the user to choose a number and execute a certain part of code based on his choice.
For example:
please choose an option
1)
2)
3)
then based on users input, it executes only that part of the code.
Would i just do something like
if choice ==1 :
do this
if choice ==2:
do this
ect?