Академический Документы
Профессиональный Документы
Культура Документы
'''sdjhgfskjdhgksdhgkj
jflskjglsdjglk
ljgsdlfkjgdfkljgkdlfj'''
print(a)
print(f)
print(name)
print(alpha)
circle=pi*(r**2)
print(circle)
# comparision operators
a=100
b=200
c=a<=b # true or false
print(c)
'''
< less than true
<= less or equal true
> greater than true
>= grater or equal true
== just equal
!= not equal
=== equal & checks datatypes as well
sal=12000
a=true
b=!a #false
a=!(100<500) #false
if num%2 == 0: #condition
#condition true
print("even number")
else:
#condition false
print("odd number")
add=a+b;
print(a);
print(b);
print(add);
add=a+b;
print(a);
print(b);
print(add);
#Modulo Example
a=115
mod=a%10
print(mod)
#write a program to print 1 to 10 numbers
count =1 #init
while count<=10:
print(count)
count=count+1
m= 65
p= 56
b= 78
c= 73
e= 62
percentage=((m+p+b+c+e)/500*100)
print (percentage)
if (percentage <35):
print("fail")
elif (percentage >=35 and percentage <50):
print ("third class")
elif (percentage >=50 and percentage<60):
print ("second class")
elif(percentage >=60 and percentage <70):
print ("first class")
else:
print ("distiction")
si=amount*r*y/100
print(si);
c=a==b #true
c=a===b # false
name="Disha"
print(name[0])
mul=name*3
print(mul)
print(statement.find('india'));