python session9

فلو چارت مثال اول وآخر را رسم کنید
mail@pastecode.io avatar
unknown
python
3 years ago
607 B
5
Indexable
Never
a = 1
while a <= 10 :          # for a in range(1,11) 
    number = int(input("enter you number: "))
    if number + 5 < 15 :
        print("my number is :" + str(number))
        a = a + 1 


# x = 'artin'
# y = ' ali'
# a = x + y
# print(a)
# print(x)
# print(y)

# z= '12'
# c = x + z
# print(c)


# a= '*'
# print(a)
# a= '**'
# print(a)
# a= '***'
# print(a)


for i in range(1,4):                 #  i -------> 1 , 2 , 3           #syntax
    for j in range(1, i+1):           # j -----> 1 , 2 , 3 , ... , i
        print("*", end = " ")
    print()