0% found this document useful (0 votes)
12 views2 pages

Import Time Today

Uploaded by

vaggaanand124
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views2 pages

Import Time Today

Uploaded by

vaggaanand124
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

import time

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")

You might also like