Skip to content

Conversation

@AasaiAlangaram
Copy link
Contributor

I'd like to contribute to this repository. If you are happy with my solution.


print('The Original Tuple:',tp)

splitted = [print('Splitted List :{List}'.format(List = tp[x:x+5])) for x in range(0,len(tp),5)]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The solution is quite very unique and nice. Here, the program will satisfy the output even if the variable splitted is not in there. To reduce redundancy, I'm modifying this line. Hope, it will be okay for you :)

@darkprinx darkprinx merged commit 21241d9 into darkprinx:master Dec 12, 2019
@darkprinx darkprinx added the enhancement New feature or request label Dec 12, 2019
@darkprinx
Copy link
Owner

The solution is merged with the master branch. Thank you very much for the contribution :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

2 participants