Executing different programs based on user input in python: Am I doing this correctly?
I think you have to do something like that to make it more readable:
import WDP_BDR
import WDP_AE
import WDP_FullCycle
model_selection = input("Press 1 if you are a BDR\nPress 2 if you are an AE\nPress 3 if you are full cycle: ")
if model_selection == '1':
WDP_BDR.{name of your function in WDP_BDR.py}
elif model_selection == '2':
WDP_AE.{name of your function in WDP_AE.py}
elif model_selection == '3':
WDP_FullCycle.{name of your function in WDP_FullCycle.py}
else:
return