Python Programming Task Week 2
Hello Folks! We have been on python lessons (datatype). We have discussed the following datatypes so far; integer (int) - see video , string (str) - see video and list which is also called array (one dimensional) - see video . Below are tasks or exercises for us this week based on list: Data = [2,4,2,1,4,5,6,1,11]. Multiply the elements in the list using for loop list comprehension map function Data = [5,4,2,1,2,6,8,9,10,11,13,17]. Sort the list in a way that all the odd numbers comes before the even numbers. Data = [1,2,3,[4,6,9],2,[1,6]] and Data2 = [1,2,3,4,5,6,7,8,9]. Find the progressive sum of the lists. Please kindly solve and drop your solutions as a comment on this blog or on our YouTube channel. Remember, there is always a prize attached to our task. To Win: Drop your answer as comment. Like this post and any other four on the blog. Like three videos on our YouTube channel. Subscribe to our blog and also our channel. Share our blog and channel to three socia...