import module1 a = int(input("Enter the 1st value")) b = int(input("Enter the 2nd value")) ch = input("Enter the operator from +,-,/,*") if ch == '+': print(module1.sum(a, b)) elif ch == '-': print(module1.sub(a, b)) elif ch == '/': print(module1.div(a, b)) elif ch == '*': print(module1.mul(a, b)) else: print("Invalid operator")
import module1 print(module1.sum(3, 4, 5)) module1.greet("Fatih") print(module1.programming_languages) print("------------") dir(module1) print("------------") help(module1)
import module1 print("sum=", module1.sum(1, 2))
#coding=utf-8 import module1 print(module1.sum(1, 2))
import module1 as m # from module1 import sum print(m.sum(10, 28)) print(m.mul(4, 9))