diff --git a/inputand output variables 1.py b/inputand output variables 1.py new file mode 100644 index 00000000..802b6c64 --- /dev/null +++ b/inputand output variables 1.py @@ -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}.")