File tree Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Original file line number Diff line number Diff line change 1
1
# string with for loop
2
- words = 'pyaephyothant'
2
+ # words = 'pyaephyothant'
3
3
# for x in words:
4
4
# print(x, end='-')
5
5
# with index
11
11
# for i,x in enumerate(words):
12
12
# print(i,x)
13
13
14
+ # row = int(input('write number between 1 and 5'))
15
+ # for p in range(row):
16
+ # for t in range(p):
17
+ # print('*',t,'t')
18
+ # print('-',p,'p')
19
+
20
+
21
+ # row = int(input('write number between 1 and 10'))
22
+ # for p in range(row):
23
+ # for t in range(p):
24
+ # print(t,end='')
25
+ # print('-')
26
+
27
+ # for p in range(1,row):
28
+ # # print(p,'p')
29
+ # for t in range(p):
30
+ # print(t,end='')
31
+ # print('-')
32
+
33
+ # x = range(3, 0, -2)
34
+ # print(x)
35
+ # for n in x:
36
+ # print(n)
37
+
38
+ putInNumber = int (input ('insert value of a number between 1 and 5 = ' ))
39
+ for p in range (5 ,putInNumber ):
40
+ for t in range (p ,0 ,- 1 ):
41
+ print ('t' ,t )
42
+ print ('-' )
43
+
You can’t perform that action at this time.
0 commit comments