American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

5 PM – Intro To Python – Gamas

November 13 @ 5:00 pm - 6:00 pm

Today We Did
  1. We finished reviewing homework from last week.
  2. We continued with grocery_shopping_cart project
Homework
  1. Create nov_13_practice_test.py
    1. Fix this broken python codes
      1. while true
            print()
            name = input("What is your name? "
            if Name.lower = "gamas":
                print(f"{name} is a cool guy")
            elif
                print(f"I don't know {name}")
    2. Do the following. If you don’t know how to do this, look up old files about list and for loop.
      1. Create a new list, “cars” and it should have: “BMW” and “HONDA” values.
      2. use for loop to go through each element in the list and print them in lowercase.
      3. After the for loop, programatically add one more element into the list using “append”: “TESLA”.
  2. Create nov_13_intro_to_random.py
    1. Add the following codes and run it. run it multiple times and tell me what numbers do you see
    2. import random as r
      
      random_num = r.randint(1,10)
      print(random_num)

Details

Date:
November 13
Time:
5:00 pm - 6:00 pm
Verified by MonsterInsights