Skip to content

abjaiyad/Python-Input-Output

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Python – Basic Input/Output (I/O)

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.

πŸ“Œ Topics Covered

  • 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()

πŸ“ Exercises Solved

Problem 1

Take a user’s name as input and greet them.
Example:
Input: Amad
Output: Hello Amad, welcome!

Problem 2

Ask for two numbers and print their sum.

Problem 3

Ask for name, age, and favorite color, then print in a formatted way:
Hello , you are years old and your favorite color is .

Problem 4

Take three numbers as input and print their average.

πŸ“‚ Repository Structure

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

πŸš€ How to Run

  1. Clone the repository:
    git clone https://github.com/abjaiyad/Python-Input-Output.git

  2. Navigate to the project folder:
    cd Python-Basic-InputOutput

  3. Run any Python file:
    python problem1.py

🎯 Purpose

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.

πŸ‘¨β€πŸ’» Author

Amad Bin Jaiyad
Learning Python β€’ Exploring Technology β€’ Building Step by Step

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages