Skip to content

Commit 75893dd

Browse files
authored
Update Day_11.md
1 parent 811a4c1 commit 75893dd

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Status/Day_11.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,23 @@ print tp2
2222
**My Solution: Python 3**
2323
```
2424
tpl = (1,2,3,4,5,6,7,8,9,10)
25+
26+
for i in range(0,5):
27+
print(tpl[i],end = ' ')
28+
print()
29+
for i in range(5,10):
30+
print(tpl[i],end = ' ')
31+
```
32+
**OR**
33+
```
34+
tpl = (1,2,3,4,5,6,7,8,9,10)
2535
lst1,lst2 = [],[]
2636
2737
for i in range(0,5):
28-
lst1.append(i)
38+
lst1.append(tpl[i])
2939
3040
for i in range(5,10):
31-
lst2.append(i)
41+
lst2.append(tpl[i])
3242
3343
print(lst1)
3444
print(lst2)

0 commit comments

Comments
 (0)