title: Python - How do I make it so that my other program only executes when an if statement is in agreement?
body: <p>My program is meant to make some sort of online cookbook and depending on what I want to make, I can choose which program to execute. In order to finally have got it to work, the integer I type in will correspond to the code that I want to run: </p>
  
  <pre><code>enter code here
  
  cookbook = int(input("What recipe would you like to make? (Please state the number)\n"))
  if cookbook == 1:
      import mymodule as mx
      mx.greeting("Nana")
  
      a = mx.person1["age"]
      print(a)
  
      mx.omin(2)
  
      mx.tmin(4)
  
      mx.cmin(10)
  
      mx.smallest(0)
  else:
      print("Updates pending")
  </code></pre>