# for loop

school = "Assumption College Thonburi"
print(type(school))
for n in school:
    print(n)
    
print("------------------------------------------")

data_id = ["Name: ", "Surname: ", "Address: ", "E-Mail: ", "Tel: "]
print(type(data_id))
for id in data_id:
    print(id)

print("------------------------------------------")

price_product = [100, 200, 300, 400, 500]
print(type(price_product))
for no in price_product:
    print("price discount 10 percent: ",(no * 0.9))
print("End")

print("------------------------------------------")

# 2.2 for loop with range

a = list(range(5))
print(a)

b = list(range(1, 7))
print(b)

c = list(range(0, 30, 5))
print(c)

d = list(range(0, -10, -3))
print(d)

e = tuple(range(0, 50, 5))
print(e)

print("------------------------------------------")

for i in range(7, 12):
    print(i, end=",")
    
print("------------------------------------------")

for x in range(20, 0, -4):
    print(x, end=",")
    
print("------------------------------------------")

food = ["salmon", "pork", "chicken", "fish"]
for c in range(len(food)):
    print(food[c], end=",")
    
print("------------------------------------------")

# stacked for loop with range()

for y in range(1, 6):
    for z in range (1, 6):
        print(y * z,end=",")
    print()


    