From a9d3e47ee7f5832125f210f3da9b1cb9ed7406d7 Mon Sep 17 00:00:00 2001 From: Dilipan Date: Thu, 30 Oct 2025 18:00:19 +0530 Subject: [PATCH] Add input/output example for user data collection input and output variables --- input and output variables | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 input and output variables 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}.")