global YES
global NO
YES=1
NO=0
def isEven(number):
global YES
global NO
if(number%2==0):
answer=YES
else:
answer=NO
return answer
def main():
global YES
global NO
#Calculation/Result
if(isEven(17)==YES):
print("YES")
else:
print("NO")
if(isEven(20)==YES):
print("YES")
else:
print("NO")
if __name__=='__main__':
main()
global PI
PI= 3.141592654
def area(r):
global PI
return (PI*r*r)
def circumference(r):
global PI
return (2*PI*r)
def volume(r):
global PI
return (1.33 * PI*r*r*r)
def main():
print("radius=1 {0:5} {1:5} {2:5}".format(area(1),circumference(1),volume(1)))
print("radius=4.98 {0:5} {1:5} {2:5}".format(area(4.98),circumference(4.98),volume(4.98)))
if __name__=='__main__':
main()
global QUARTS_PER_LITER
QUARTS_PER_LITER=1.05687
def main():
global QUARTS_PER_LITER #Global Reference
print("***Liters to galons***")
print("Enter the number of Litres")
liters=12 #liters=raw_input()
gallons=float(liters)*QUARTS_PER_LITER/4.0 #calculation
print("{0} Liters = {1} gallons".format(liters,gallons))
if __name__=='__main__':
main()