Skip to content

Hadia-codes/add-two-numbers-in-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

➕ Add Two Numbers – Python Mini Project

This is a beginner-level Python script that takes two numbers from the user, adds them using a simple function, and prints the result.

It’s a great starting point to understand how functions, input, and basic operations work together in Python.


🔍 What the Code Does

  • Asks the user to enter two numbers
  • Converts the inputs into float type (so decimals work too)
  • Sends the numbers into a custom function called add()
  • Adds the numbers and returns the result
  • Prints the final answer clearly

💡 Why This Project?

  • Perfect for practicing function structure in Python
  • Builds confidence in writing clean and simple code
  • Can be expanded into a calculator later

🛠 Technologies Used

  • Python 3
  • No extra libraries — just built-in functions

📁 File Included

  • add_two_numbers.py → contains the complete working code

👩‍💻 Author

Hadia — Exploring Python through simple and useful scripts.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages