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

16th Jun 2021, 1:37 PM
Brianna
8 ответов
+ 1
For this question complete the course bit more.As you have completed 13% of it only
16th Jun 2021, 1:50 PM
Atul [Inactive]
+ 1
Nivya he is expecting this output, I think [6,8] [1,3] [2,5]
16th Jun 2021, 2:29 PM
Atul [Inactive]
+ 1
Yea Atul may be or anything based on the conditions ,until he gives what it is actually we cant help out!
16th Jun 2021, 2:52 PM
Nivya
Nivya - avatar
+ 1
Emma Thank you so much! But what about if the array size is 7?
17th Jun 2021, 4:51 AM
Brianna
+ 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)
17th Jun 2021, 5:22 AM
Brianna
0
In the output you are segreegated the reversed integers ...on what basis ?sorry, I didn't understand that part...
16th Jun 2021, 1:54 PM
Nivya
Nivya - avatar
0
Thank you so much Emma , you're a life saver
17th Jun 2021, 5:35 AM
Brianna
0
Can I have the code as well Brianna ? because we have the same assignment
27th Oct 2021, 2:54 PM
Althea Nadine Fernandez