0
Reverse lists and group
How can I group the reverse list of integers? The output should be grouped on reverse. Example: Input: 5 2 3 1 8 6 My desired Output: [6,8]-[1]-[3,2] I don't know the basis of how this group came to be. The assignment only says to "group them according to your liking with proper code" This is my code: https://code.sololearn.com/cA25a9a14A38
8 Respuestas
+ 1
For this question complete the course bit more.As you have completed 13% of it only
+ 1
Nivya he is expecting this output, I think
[6,8] [1,3] [2,5]
+ 1
Yea Atul may be or anything based on the conditions ,until he gives what it is actually we cant help out!
+ 1
Emma Thank you so much! But what about if the array size is 7?
+ 1
Emma ,The recent code that you gave is actually right, the only problem is that it didn't have a comma between the numbers.
(I saw your comment in the other guy's post: It seems we do have the same assignment)
0
In the output you are segreegated the reversed integers ...on what basis ?sorry, I didn't understand that part...
0
Thank you so much Emma , you're a life saver
0
Can I have the code as well Brianna ? because we have the same assignment