Advertisement
HBSB

4.8 functions

Mar 9th, 2020
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. def intro ():
  2.   print ("let's do some coding")
  3.  
  4. intro()
  5. intro()
  6. activity_list = []
  7. phrase = input("What would you like to code?>")
  8. if phrase == "functions":
  9.   print ("Ok, that's cool.")
  10. elif phrase == "practice functions":
  11.   print ("how sensible")
  12. else:
  13.   print ("I'm sorry, I can't help with that.  Bye.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement