top of page
learn_data_science.jpg

Data Scientist Program

 

Free Online Data Science Training for Complete Beginners.
 


No prior coding knowledge required!

Seun Assignment 2

# Python program to make a simple calculator # taking user input no1 = float(input("Enter first number: ")) no2 = float(input("Enter second number: ")) # choice operation print("Operation: +, -, *, /") select = input("Select operations: ") # check operations and display result if select == "+": print(no1, "+", no2, "=", no1+no2) elif select == "-": print(no1, "-", no2, "=", no1-no2) elif select == "*": print(no1, "*", no2, "=", no1*no2) elif select == "/": print(no1, "/", no2, "=", no1/no2) else: print("Invalid input")

0 comments

Recent Posts

See All

Comments


bottom of page