FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

ammode/Basic-Programs-Python: Simple programs for reference, a good place to start contributing. Note: This repo is often used to help first-time contributors make their first contributions in talks, workshops · GitHub

 
 

Basic-Programs-Python

print("Select Your Operation") print("1. ADD") print("2. SUBTRACT") print("3. MULTIPLY") print("4. DIVISION") print("5: MODULE")

operation = input()

if operation == "1": num1 = input("Enter Your First Number:") num2 = input("Enter Your Second Number: ") print("The Sum Is " + str(int(num1) + int(num2)))

elif operation == "2": num1 = input("Enter Your First Number") num2 = input("Enter Your Second Number") print("The Sum Is " + str(int(num1) - int(num2)))

elif operation == "3": num1 = input("Enter Your First Number") num2 = input("Enter Your Second Number") print("The Sum Is " + str(int(num1) * int(num2)))

elif operation == "4": num1 = input("Enter Your First Number") num2 = input("Enter Your Second Number") print("The Sum Is " + str(int(num1) / int(num2)))

elif operation == "5": num1 = input("Enter Your First Number") num2 = input("Enter Your Second Number") print("The Sum Is " + str(int(num1) % int(num2)))

else: print("INVALID SYNTAX PLS TRY ANOTHER OPERATIONS")

About

Simple programs for reference, a good place to start contributing. Note: This repo is often used to help first-time contributors make their first contributions in talks, workshops

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL