Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Python by Nishu20119 ( 6 years ago )
a=int(input("Enter Number to check even Odd"))
if (a%2 == 0):
print(a," is even.")
elif (a%2 != 0):
print(a," is odd.")
else:
print(" Invalid Input")
print("Enter Marks Out Of 100")
a=int(input("Marks Of Subject 1"))
b=int(input("Marks Of Subject 2"))
c=int(input("Marks Of Subject 3"))
d=int(input("Marks Of Subject 4"))
e=int(input("Marks Of Subject 5"))
grade=(a+b+c+d+e)/5
if (grade >=90 and grade <=100):
print("You Got O grade")
elif (grade >=80 and grade <=89):
print("You Got A grade")
elif (grade >=70 and grade <=79):
print("You Got B grade")
elif (grade >=60 and grade <=69):
print("You Got C grade")
elif (grade >=50 and grade <=59):
print("You Got D grade")
elif (grade >=0 and grade <=49):
print("You are fail")
else:
print(" You Entered Incorrect Marks")
for i in range(2,100):
flag=1
for j in range(2,i):
if(i%j==0):
flag=0
break
if flag==1:
print(i)
print("Check amstrong Number")
a=int(input("Enter Number "))
t=a
sum = 0
while t!=0:
i=t%10
sum=sum+(i*i*i)
t=int(t/10)
print("Your Sum = ",sum)
if (sum ==a):
print(a, " is Amstrong")
else:
print(a, " is not Amstrong")
ch = input("Enter any alphabet : ")
if(ch == 'a' or ch == 'e' or ch == 'i' or ch == 'o' or ch == 'u' or ch == 'A'or ch == 'E' or ch == 'I' or ch == 'O' or ch == 'U'):
print( ch, "is a Vowel")
else:
print(ch, "is a Consonant")
Revise this Paste