# functions الدوال 
# excel sum(A1 : A30)  average( : ) 
# duplicate code z = x + y  20 

#code block   #function name hamada
#<< x = 5   y = 2  z = x + y >>

# 3lines   20 * 3 = 60 line
'''hamada
hamada
hamada
hamada
hamada
hamada'''

#def = 4 #error

#user defined function
def calEquation(   ):  #function header
    print("Ok")  # function body   
# function calling
#calEquation()

'''
gl = 3

# None    value 
def sum(x, y): #function arguments
    global gl
    print(gl) #3
    gl = 2
    print(gl)  #2
    if x > y:
        return x - y * gl
    else:
        return y - x * gl


print(  sum(5, 9)  ) #x = 1  y = 2
'''
#the summuation is used to divide by 6
#f = sum(5, 9)

#c = sum(5, 9) / 6

#v = f / 6

#print(c)



'''
def calFib(number):
    if number < 3:
        return 1
    else:
        return calFib(number - 1) 

print( calFib(8) )
'''

'''
def calMultiplication(N):
    if N < 1:
        return 1
    else:
        return N * calMultiplication((N - 1))
def MulList(n):
    for i in range(n, 1, -1):
        print ("Multiplication of", i, "is", calMultiplication(i))
MulList(5)
'''



l = [4, 2, 67, 2, 1]

small = l[0] #4

for i in l:
    if i < small:
        small = i #small = 1 

print(small)


def multy(x, y):
    for i in range(x, y+1):  #1, 2, 3, 4, 5
        print("this is malt. table of ", i)
        for j in range(1, 6):
            print(i, " * ", j, "=", i * j)



multy(1, 3)