import pyRecipeBook
import FoodGroups

#Welcome screen
welcomeMessage =  "Welcome to pyRecipeBook!\n"
welcomeMessage += "Enter a command below:\n"
print(welcomeMessage)


#
pre = '# '
on = True

#Keep asking for inpyt
while(on):
	command = input(pre)
	#Run command

#Exiting commands	
"Thank you for choosing to use pyRecipeBook"
import pyRecipeBook
import FoodGroups

#Welcome screen
welcomeMessage =  "Welcome to pyRecipeBook!\n"
welcomeMessage += "Enter a command below:\n"
print(welcomeMessage)

#Method to run commands
def runCommand(command):
	if command.strip() == 'exit':
		return False
	else:
		return True

#
pre = '# '
on = True

#Keep asking for inpyt
while(on):
	#Enter a command
	command = raw_input(pre)
	#Run command
	on = runCommand(command)

#Exiting commands
exitMessage = "\nThank you for choosing to use pyRecipeBook!\n"	
print(exitMessage)
Update interacitve.py - Add a method to run predefined commands.
Update interacitve.py
  - Add a method to run predefined commands.

  import pyRecipeBook
  import FoodGroups
  
  #Welcome screen
  welcomeMessage =  "Welcome to pyRecipeBook!\n"
  welcomeMessage += "Enter a command below:\n"
  print(welcomeMessage)
  
+ #Method to run commands
+ def runCommand(command):
+ 	if command.strip() == 'exit':
+ 		return False
+ 	else:
+ 		return True
  
  #
  pre = '# '
  on = True
  
  #Keep asking for inpyt
  while(on):
+ 	#Enter a command
- 	command = input(pre)
+ 	command = raw_input(pre)
  	#Run command
+ 	on = runCommand(command)
  
- #Exiting commands	
+ #Exiting commands
- "Thank you for choosing to use pyRecipeBook"
+ exitMessage = "\nThank you for choosing to use pyRecipeBook!\n"	
+ print(exitMessage)
Update interacitve.py - Add a method to run predefined commands.
## Code Before:
import pyRecipeBook
import FoodGroups

#Welcome screen
welcomeMessage =  "Welcome to pyRecipeBook!\n"
welcomeMessage += "Enter a command below:\n"
print(welcomeMessage)


#
pre = '# '
on = True

#Keep asking for inpyt
while(on):
	command = input(pre)
	#Run command

#Exiting commands	
"Thank you for choosing to use pyRecipeBook"
## Instruction:
Update interacitve.py - Add a method to run predefined commands.
## Code After:
import pyRecipeBook
import FoodGroups

#Welcome screen
welcomeMessage =  "Welcome to pyRecipeBook!\n"
welcomeMessage += "Enter a command below:\n"
print(welcomeMessage)

#Method to run commands
def runCommand(command):
	if command.strip() == 'exit':
		return False
	else:
		return True

#
pre = '# '
on = True

#Keep asking for inpyt
while(on):
	#Enter a command
	command = raw_input(pre)
	#Run command
	on = runCommand(command)

#Exiting commands
exitMessage = "\nThank you for choosing to use pyRecipeBook!\n"	
print(exitMessage)