Python Task/Exercise Week 3 No 2
In this task/exercise, we have to print back a given list
using the index position, in a way that all the odd comes
before the even.
Hence, using this list below,
sample = list(range(1,101))
print the list that in this way
sample_new = [all odd index position, all even index position]
_____________________________________________________
Please submit your answer on the BLOG or YouTube Channel
as a comment. There is a prize to be won.
CONGRATS TO MR. ELVIS that won in the last task/exercise.
Terms and Conditions for winning
1] Drop your answer as a comment.
2] Like this post and any other four on the blog
3] Like three videos on our YouTube Channel
4] Subscribe to our BLOG and YouTube Channel
5] Share our blog and channel to three social media sites with
the hashtag hamplustech (#hamplustech)
Thanks.
using the index position, in a way that all the odd comes
before the even.
Hence, using this list below,
sample = list(range(1,101))
print the list that in this way
sample_new = [all odd index position, all even index position]
_____________________________________________________
Please submit your answer on the BLOG or YouTube Channel
as a comment. There is a prize to be won.
CONGRATS TO MR. ELVIS that won in the last task/exercise.
Terms and Conditions for winning
1] Drop your answer as a comment.
2] Like this post and any other four on the blog
3] Like three videos on our YouTube Channel
4] Subscribe to our BLOG and YouTube Channel
5] Share our blog and channel to three social media sites with
the hashtag hamplustech (#hamplustech)
Thanks.
Comments
Post a Comment