#Macro declaration
UPPER = 25
for i in range(1,UPPER+1): #macro expansion
print(i)
#Macro declaration
PI = 3.1415
#Variable declaration
r = 6.25
#Calculation
area = PI * r * r
#Result
print "Area of circle = ", area
#Macro declaration
def AREA(x): #define AREA(x) ( 3.14 * x * x )
return(3.14 * x * x )
#Variable declaration
r1 = 6.25
r2 = 2.5
#Result
a = AREA(r1)
print "Area of circle = ", a
a = AREA(r2)
print "Area of circle = ", a
#Macro declaration
def ISDIGIT(y): #define ISDIGIT(y) ( y >= 48 && y <= 57 )
return( y >= 48 and y <= 57 )
#Input from user
#ch = raw_input("Enter any digit ")
ch = 'a'
#Result
if ISDIGIT ( ch ):
print "You entered a digit"
else:
print "Illegal input"