This repository contains beginner-level Python exercises focused on Basic Input/Output operations using input()
and print()
. The goal is to understand how to take user input, process it, and display results effectively.
- Using
input()
to take user input - Understanding that
input()
returns a string - Converting input into other data types (
int()
,float()
) - Displaying output with
print()
- String formatting using f-strings and
.format()
Take a userβs name as input and greet them.
Example:
Input: Amad
Output: Hello Amad, welcome!
Ask for two numbers and print their sum.
Ask for name, age, and favorite color, then print in a formatted way:
Hello , you are years old and your favorite color is .
Take three numbers as input and print their average.
Python-Basic-InputOutput/
β
βββ problem1.py # Greet user with name
βββ problem2.py # Sum of two numbers
βββ problem3.py # Name, age, favorite color
βββ problem4.py # Average of three numbers
βββ README.md # Project documentation
-
Clone the repository:
git clone https://github.com/abjaiyad/Python-Input-Output.git -
Navigate to the project folder:
cd Python-Basic-InputOutput -
Run any Python file:
python problem1.py
This repository is part of my Python learning journey, where I am exploring how to work with basic input and output to build a stronger foundation for real-world coding.
Amad Bin Jaiyad
Learning Python β’ Exploring Technology β’ Building Step by Step