diff --git a/input and output variables b/input and output variables new file mode 100644 index 00000000..ff4be91f --- /dev/null +++ b/input and output variables @@ -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}.")