-2

Is there any way to make a python program that only runs certain parts of the whole program depending on what the user inputs, I’m new to python and programming in a whole.

ollydbg23
  • 1,124
  • 1
  • 12
  • 38

1 Answers1

0

Use an If-Else logic.

if input == something:  
   This part of Code  
elif input == something else:
   This part of code  
else:  
   Do nothing 
kkblue
  • 183
  • 10