🐍 In Python, write a code to let users carry out basic mathematical calculations that include addition, subtraction, multiplication, and division. Solution def basic_operation(a, b, opp): if opp[0] == '+': return a+b elif opp[0] == '-': return a-b elif opp[0] == '*': return a*b elif opp[0] == '/': return a/b if __name__ == '__main__': a = float(input('Enter first number: ')) opp = input("+ - * / ") b = float(input('Enter second number: ')) print(basic_operation(a, b, opp))
Project Weekay | Resume | LinkedIn Profile
NodeJS, AWS, MongoDB, ReactJS, Django, Python, ML with Scikit Learn, Matplotlib, Seaborn
Engineering, UX, Marketing, Product Designing, Business
sayhellotovinit@gmail.com | +91 99239 08880 | Pune, India