Import Time Today
Import Time Today
print("=====addition=====")
def test_case1(A,B):
print("the value of A is:",A)
print("the value of B is:",B)
return A+B
if(__name__=="__main__"):
print("addition is:",test_case1(10,20))
print()
time.sleep(2)
print("end of an application")
import time
print("=====addition=====")
def test_case1(A,B):
print("the value of A is:",A)
print("the value of B is:",B)
pass
if(__name__=="__main__"):
print("addition is:",test_case1(10,20))
print()
time.sleep(2)
print("end of an application")
import time
def test_case1(x1,x2):
print("the value of A is:",x1)
print("the value of B is:",x2)
return (x1+x2,x1*x2,x1-x2,x1/x2,x1**x2)
if(__name__=="__main__"):
print("addition is:",test_case1(10,20))
print()
time.sleep(2)
print("end of an application")
import time
def test_case1(x1,x2):
print("the value of A is:",x1)
print("the value of B is:",x2)
return (x1+x2)
def test_case2(x1,x2):
return x1-x2
def test_case3(x1,x2):
return x1//x2
def test_case4(x1,x2):
return x1/x2
def test_case5(x1,x2):
return x1*x2
def test_case6(x1,x2):
return x1**x2
if(__name__=="__main__"):
print("addition is:",test_case1(10,20))
print("sub is:",test_case2(10,20))
print("float div is:",test_case3(10,20))
print("div is:",test_case4(10,20))
print("mult is:",test_case5(10,20))
print("exponetial is:",test_case6(10,20))
print()
for s1 in ():
print(s1)
time.sleep(2)
print("end of an application")
import time
esal=25000
def test_case1():
ecompany="ihub"
global ename
ename='karthik'
print("easl is:",esal)
print("ecompany is:",ecompany)
print("ename is:",ename)
def test_case2():
print(ename)
print(esal)
def test_case3():
pass
if(__name__=="__main__"):
test_case1()
print()
test_case2()
print()
test_case3()
print()
time.sleep(2)
print("end of an application")