in Education by
29: Write a program in python to make a simple calculator using function Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
operation = input(”’ Please type in the math operation you would like to complete: + for addition – for subtraction * for multiplication / for division ”’) number_1 = int(input(‘Enter your first number: ‘)) number_2 = int(input(‘Enter your second number: ‘)) if operation == ‘+’: print(‘{} + {} = ‘.

Related questions

0 votes
    write a program to implement a simple calculator for two input number . offers choice through a menu in python Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    write the steps to search the 13 from the following element using binary search 2,4,5,8,9,11,12,13,15,18,21,22,25,29,30 Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    create a four-function calculator. the program requires the user to enter two numbers and an operator. it then ... displays the result Select the correct answer from above options...
asked Dec 17, 2021 in Education by JackTerrance
0 votes
    create a four-function calculator. the program requires the user to enter two numbers and an operator. it then ... displays the result Select the correct answer from above options...
asked Dec 17, 2021 in Education by JackTerrance
0 votes
    write a Java program for the following : write a program in java to calculate simple interest (SI) for principal ... (T) as 3years Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    write a Java program for the following : write a program in java to calculate simple interest (SI) for principal ... (T) as 3years Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    write a program to find the simple intrest, if we input principal, rate, time… formula:si=pxrxt/100 Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    Write a program in python to insert ten friends name in a list, then print 3rd, 5th and 9th value from the list (using data structure) Select the correct answer from above options...
asked Dec 14, 2021 in Education by JackTerrance
0 votes
    Write a Python program to get the Python version you are using. Select the correct answer from above options...
asked Dec 5, 2021 in Education by JackTerrance
0 votes
    Write a Python program to get the Python version you are using. Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
0 votes
    Write a program to convert a decimal number into binary number using function Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    Write a Java program to read two strings from command line arguments and check the equality of two strings using string function. Select the correct answer from above options...
asked Dec 9, 2021 in Education by JackTerrance
0 votes
    Write a program in Java to find the area and perimeter of a right- angled triangle by using function ... inputs. angled triangle Select the correct answer from above options...
asked Dec 7, 2021 in Education by JackTerrance
0 votes
    Write a program in Java to find the area and perimeter of a right- angled triangle by using function ... inputs. angled triangle Select the correct answer from above options...
asked Dec 5, 2021 in Education by JackTerrance
0 votes
    Write a program to accept string from user and search a given character from string without using find() function Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
...