Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions input and output variables
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Exercise #31: Input/Output & Variables

# Taking user inputs
name = input("Enter your name: ")
age = int(input("Enter your age: "))
city = input("Enter your city: ")

# Output message
print(f"Hello {name}! You are {age} years old and live in {city}.")