Professional Documents
Culture Documents
Assingnment 1
Assingnment 1
print("Name= S.Roshan")
print("Rollno=11413")
T=A+E+C
P=(T/300)*100
G=None
if P>=80:
G="A"
G="B"
G="C"
G="D"
print('Level 1,above agency - normalised standards')
G="E"
if P<40:
G="R"
print('Remedial standards')
OUTPUT:
RESULT:
The progress is excuted sucessfully
SOURCE CODE:
print("Name = S.Roshan")
print("Roll no = 11413")
N=1
while N<21:
print("Square of",N,'---',N*N)
N+=1
OUTPUT:
RESULT:
The progress is excuted sucessfully
SOURCE CODE:
print("Name = S.Roshan")
print("Roll no = 11413")
for a in range(1,100):
if a%3==0:
print("Fizz")
elif a%5==0:
print("Buzz")
print("Fizz Buzz")
OUTPUT:
RESULT:
The progress is excuted sucessfully
SOURCE CODE:
print("Name = S.Roshan")
print("Roll no = 11413")
B=[]
for I in range(0,N):
B.append(A)
S1=S2=S3=0
for C in B:
if C>0:
if C%2==0:
S1+=C
else:
S2+=C
else:
S3+=C
print(B)
OUTPUT:
RESULT:
The progress is excuted sucessfully
SOURCE CODE
print("Name = S.Roshan")
print("Roll no = 11413")
value1=0
value2=1
Result=0
print(value1)
print(value2)
for A in range(0,N):
Result=(value1+value2)
value1=value2
value2=Result
print(Result)
OUTPUT:
RESULT:
The progress is excuted sucessfully
SOURCE CODE:
print("Name= S.Roshan")
print("Rollno=11413")
print("Class= 11-D")
print(A)
OUTPUT:
RESULT:
The progress is excuted sucessfull
SOURCE CODE:
print("Name = S.Roshan")
print("Roll no = 11413")
print("Class= 11-D")
print('''Deposit=1
Withdrawal=2
Balance Enquiry=3''')
G=1
while G==1:
if CO==1:
D+=E
elif CO==2:
D-=F
elif CO==3:
print('Your name:',A)
else:
OUTPUT:
RESULT:
The progress is excuted sucessfull
SOURCE CODE:
print("Name = S.Roshan")
print("Roll no = 11413")
print("Class= 11-D")
A=int(input('Enter a number:'))
B=1
C=1
while C<=A:
B*=C
C+=1
OUTPUT:
RESULT:
The progress is excuted sucessfull
SOURCE CODE:
print("Name = S.Roshan")
print("Roll no = 11413")
print("Class= 11-D")
A=eval(input('Enter the mark of a 1st student like (1st sub mark ,2nd sub mark, 3rd sub
mark):'))
B=eval(input('Enter the mark of a 2nd student like (1st sub mark ,2nd sub mark, 3rd sub
mark):'))
C=eval(input('Enter the mark of a 3rd student like (1st sub mark ,2nd sub mark, 3rd sub
mark):'))
D=eval(input('Enter the mark of a 4th student like (1st sub mark ,2nd sub mark, 3rd sub
mark):'))
E=eval(input('Enter the mark of a 5th student like (1st sub mark ,2nd sub mark, 3rd sub
mark):'))
Marks=(A,B,C,D,E)
print('Marks:',Marks)
OUTPUT:
RESULT:
The progress is excuted sucessfull
SOURCE CODE:
print("Name = S.Roshan")
print("Roll no = 11413")
print("Class= 11-D")
A=int(input('Enter a number:'))
C=A**3
D=1
for B in range(1,A+1):
if A%B==0:
D*=B
if D==C:
else:
print(C)
OUTPUT:
RESULT:
The progress is excuted sucessfull
SOURCE CODE:
print("Name = S.Roshan")
print("Roll no = 11413")
print("Class= 11-D")
L=eval(input('Enter a list:'))
Length=len(L)
Mean=sum=0
for I in range(0,Length-1):
sum+=L[I]
Mean=sum/Length