vendredi 3 avril 2020

Python - How do I make it so that my other program only executes when an if statement is in agreement?

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. I've tried many ways but I still can't get it to work. PLease help.

enter code here

import pepper
cookbook = input("What recipe would you like to make?")
if cookbook == "pepper":
import pepper // This is the name of the file I want to execute

Aucun commentaire:

Enregistrer un commentaire