Website example
See https://w3.cs.jmu.edu/mayfiecs/cs149/
course = input("Enter the course: ")
semester = input("Enter the semester: ")
print(f"Welcome to {course}, {semester}!")
- Notice the entire output is one f-string
- Multiple variables are substituted with
{}
- Formatting codes like
:.3f
are optional