Skip to content

pravallika-mutyala/Basic-Simple-Python-programs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Basic-Simple-Python-programs

This repository contains two beginner-friendly Python programs:

  1. A calculator for basic math operations.
  2. A greeting program that takes the user's name with input validation.

πŸ“ Files

1. basicMathProgram.py

  • Takes two numbers as input from the user.
  • Performs:
    • Addition
    • Subtraction
    • Multiplication
    • Division (with zero division handling)
  • Includes error handling for invalid inputs.

2. greeting.py

  • Prompts the user to enter their first and last names.
  • Validates the inputs to ensure they are not empty and contain only letters.
  • Prints a personalized greeting.

πŸš€ How to Run

Make sure you have Python installed. Then run each program using:

python basicMathProgram.py
python greeting.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages