Lesson 3 of 10
Strings & User Input
Strings are text in Python. You can use single quotes ' or double quotes ". Use input() to ask the user for text. Use len() to get string length and .upper() or .lower() to change case.
PYTHON
name = input("What is your name? ")
print("Hello, " + name + "!")
print("Your name has", len(name), "letters")
print(name.upper())
# f-strings (modern way)
print(f"Welcome, {name}!")