American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

1:15 PM – Intro to Python – Isaac

June 22 @ 1:15 pm - 3:15 pm

Today, we learned
  1. random.randint(1, 8)
  2. Magic 8 Ball with if elif else
  3. Magic 8 Ball with list index and randint
  4. Magic 8 Ball in a while loop (repeat until “quit” or “exit”)
  5. Magic 8 Ball with get_magic8ball_response() function
  6. random.choice instead of random.randint
Homework
  1. Create a Magic 8 Ball program, but use random.choice instead of random.randint. Save it to a file called Jun_22_Magic8BallHomework.py
  2. Do the Intro to Python Exercises for Quiz 2 to prepare for your quiz. Save it to a file called Jun_22_QuizPrep.py

Details

Date:
June 22
Time:
1:15 pm - 3:15 pm