python codes
python codes
marks=(int)(input("enter marks"))
print("first class")
print("second class")
print("third class")
else:
print("fail")
x = (int)(input("enter number"))
y = (int)(input("enter another"))
z = (int)(input("enter another"))
else:
print("password is wrong")
else:
print("login success")
ch = input("enter any alphabet")
print("it is a vowel")
else:
print("it is a consonant")
v = [ 'A', 'a', 'E', 'e', 'I', 'i', 'O', 'o', 'U', 'u']
if ch in v:
print("vowel")
else :
print("not a vowel")
d=b*b-4*a*c
if d > 0:
r1 = (-b + math.sqrt(d))/2*a
r2 = (-b - math.sqrt(d))/2*a
elif d==0:
r1 = r2 = - b/2*a
else:
print("imaginary roots")
f = 89
y = 7.3
k = "tree"
w =(3, 4, 2, 8)
t = True
r = 6 +4j
print(type(f))
print(type(y))
print(type(k))
print(type(j))
print(type(p))
print(type(t))
print(type(r))
print(type(w))
n = 89
print(id(n))
def disp():
print("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@")
disp()
disp()