Python Introduction Exercises

  1. Discuss with your neighbor:
    1. the differences between an interpreter and a compiler
    2. if Python is an interpreted or compiled language
  2. Discuss with your neighbor the similarities and differences between Python and English.
  3. Write down python code to do the following:
    1. Display your full name
    2. Display your last name, first name (for example: Carroll, Hyrum)
    3. Create a variable named favNum and assign it your favorite number
    4. Display your favorite number (using favNum)
    5. Display your name and your favorite number (using favNum), all on one line
    6. Display your name and your favorite number (using favNum), on two lines (but with just one print())
    7. Display the following (exactly as shown):
      One of my favorite quotes is, "Today's a good day to have a good day"
    8. Display the following:
      *
      **
      * *
      ****
    9. Display the following (exactly as shown):
         _
       _(")_
      (_ . _)
       / : \  Yummy!
      (_/ \_)