American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Intro To Python – Darin

April 9 @ 6:00 pm - 7:00 pm

NEXT WEEK IS YOUR FINAL EXAM ON APRIL 16

What We Did Today:

  1. Reviewed topics for the final exam next week

Homework:

Study for your final exam next week, focusing on the robux system as well as how to draw shapes in python using functions (check the google drive for the notes).

Practice for the final:

# Make a program that gives you the following output from two different lists:
# List 1: ["teddy bear", "doll", "action figure"]
# List 2: ["candy bar", "burger", "chocolate bar"]

# Hi! Please select one of our lucky draw boxes:
# 1. Box 1
# 2. Box 2
# 3. Exit program
# Your choice: 1

# You have selected Box 1! You received a teddy bear!

# Hi! Please select one of our lucky draw boxes:
# 1. Box 1
# 2. Box 2
# 3. Exit program
# Your choice: 2

# You have selected Box 2! You received a candy bar!

# Hi! Please select one of our lucky draw boxes:
# 1. Box 1
# 2. Box 2
# 3. Exit program
# Your choice: 2

# You have selected Box 2! You received a burger!

# Hi! Please select one of our lucky draw boxes:
# 1. Box 1
# 2. Box 2
# 3. Exit program
# Your choice: 1

# You have selected Box 2! You received a doll!

# Hi! Please select one of our lucky draw boxes:
# 1. Box 1
# 2. Box 2
# 3. Exit program
# Your choice: 4

# Invalid selection, please try again.


# HOW TO GET STARTED:
# Make the question appear forever and get the user input using selection = input()
# Check each selection and do some action depending on the choice
# In this case, choice 1 would give you a random item from list 1 (item = r.choice(list1))
# choice 2 gives you a random item from list 2
# choice 3 lets you break out of the forever and end the program

Notes:

If you have any questions, you can email me at ddjapri@ayclogic.com !!

Details

Date:
April 9
Time:
6:00 pm - 7:00 pm
Event Categories:
,
Verified by MonsterInsights