Professional Documents
Culture Documents
Assignment 3: 1.creating Files Mymodule, Mymodule1, Basic, Operations, Specialmenu in Workfromhome Folder
Assignment 3: 1.creating Files Mymodule, Mymodule1, Basic, Operations, Specialmenu in Workfromhome Folder
CALCULATOR
1.Creating files;
mymodule,mymodule1,basic,operations,specialmenu in
workfromhome folder
import math
def specialoperations():
n=int(input("Enter a number"))
ch1=int(input("Enter choice 1.Square root,2.Factorial"))
if(ch1==1)
print("Square root",math.sqrt(n))
elif(ch2==2)
print("Factorial",math.factorial(n))
Cases:
i) Addition:
ii) Subtraction:
iii) Multiplication:
iv) Division
- Sivadanus.S
- 2019109036
- Department of
Manufacturing
Engineering