RESOURCES: Class slides: https://docs.google.com/presentation/d/1zIPSvXFg7eEVjguovCNHKpuojvqCq6eA5tjJpfGnSKc/edit?usp=sharing
Coding platform: replit.com
Discord: https://discord.gg/FKKAcmrr
HOMEWORK:
Give 3 examples of each data type (2 examples for Booleans).
Take user input and tell an interactive story using f-strings and concatenation of variables and print statements.
Example of a starting point:
username = input(“What is your name?”)
print(username + “, you know my name, not my story”)
Post your answers as a comment! Solutions will be posted later.
Feel free to email shravyassathish@gmail.com (mentor) or kingericwu@gmail.com (TA) if you're stuck or have questions! See you next class :)
3 data types=integer (14) boolean (True, False) float (3.5)
username=input("What is your name?")
print("Hello " + username + "!")
print(f"{username} is new to the class.")
age=input("How old are you?")
print("I am ",age)
food=input("What is your favorite food?")
print(f"I like {food} too!")
book=input("What is your favorite book?")
print(f" I do not like {book}. I think it is very boring")
state=input("which state do you live in?")
print(f'I live in {state} too!')
print("bye I have to go")