function aviral - Jupyter Notebook2
function aviral - Jupyter Notebook2
enter first999999999999
enter second10000000000000000
enter third9999999999999999999
maximum is 9999999999999999999
x=int(input("enter first"))
y=int(input("enter second"))
z=int(input("enter third"))
ma=fun(x,y,z)
print("minimum is",ma)
value of a 10
value of a 20
value of a 30
value of a 20
value of a 20
value of a 30
In [3]: def area (a=10,b=20,c=30):
print("value of a",a)
print("value of a",b)
print("value of a",c)
area(20,30)
value of a 20
value of a 30
value of a 30
value of a 20
value of a 30
value of a 40
In [1]: x=int(input("number"))
y=int(input("power"))
z=int(input("divide by"))
s=pow(x,y,z)
print(s)
number10
power2
divide by3
1
In [2]: f=open('avi.bgmi','w')
f.write('THIS IS AVIRAL')
f.close()
In [5]: f=open("avi.bgmi",'r')
s=f.read()
l=len(s)
c=0
v='aeiouAEIOU'
for i in range(0,l):
if (s[i] in v):
c=c+1
print("no vovel of",c)
no vovel of 10
Computer Science 1
Scienc
Cmue cec
e
Computer ScienceComputer Science
eniSrtpo
Computer Science
cOMPUTER sCIENCE
True
False
In [ ]: