« All Events
5 PM – Intro To Python – Gamas
November 13 @ 5:00 pm - 6:00 pm
Today We Did
- We finished reviewing homework from last week.
- We continued with grocery_shopping_cart project
Homework
- Create nov_13_practice_test.py
- Fix this broken python codes
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}")
- Do the following. If you don’t know how to do this, look up old files about list and for loop.
- Create a new list, “cars” and it should have: “BMW” and “HONDA” values.
- use for loop to go through each element in the list and print them in lowercase.
- After the for loop, programatically add one more element into the list using “append”: “TESLA”.
- Create nov_13_intro_to_random.py
- Add the following codes and run it. run it multiple times and tell me what numbers do you see
import random as r
random_num = r.randint(1,10)
print(random_num)