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 :)
livingthing = input("What are you?")
print("Once upon a time, there was a", livingthing,".")
characteristic = input("What could you be described as?")
print("This", livingthing, "was very", characteristic, ".")
wordlestarter = input("What is your wordle starting word?")
if len(wordlestarter) == 5:
print("Good Choice!")
goodtrait = input("What is good about you?")
print("You are very", goodtrait, "because you are good at wordle, I'm so proud. ;D")
else:
print("Error")
badtrait = input("What is bad about you?")
print("You are very", badtrait, "because you are bad at wordle, figure it out. >:O")
Was this what we were supposed to do?