Skip to content

Commit 21241d9

Browse files
authored
Merge pull request darkprinx#8 from AasaiAlangaram/master
My Solution to Question 38.
2 parents 627a188 + d1663bc commit 21241d9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Status/Day_11.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,21 @@ Solution by: CoffeeBrakeInc
5454
tup = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
5555
lt = int(len(tup)/2)
5656
print(tup[:lt], tup[lt:])
57+
```
58+
------------------
59+
**OR**
60+
```python
61+
62+
'''
63+
Solution by: AasaiAlangaram
64+
'''
65+
66+
tp = (1,2,3,4,5,6,7,8,9,10)
67+
68+
print('The Original Tuple:',tp)
69+
70+
splitted = [print('Splitted List :{List}'.format(List = tp[x:x+5])) for x in range(0,len(tp),5)]
71+
5772
```
5873
------------------
5974

0 commit comments

Comments
 (0)