Oktatás * Programozás 2 * Szkriptnyelvek * levelezősök Félévek Linkek * kalendárium |
EnPy /
20120904breverse a part of a list Having a list, reverse a part of it. For instance, consider the list Solve the problem in a general way. Complete the following code snippet: a = [1, 2, 9, 6, 5] i = 2 # start reversing from this index position j = 4 # reverse until this position (but this position is included) ... # magic happens print a # [1, 2, 5, 6, 9] |
Blogjaim, hobbi projektjeim * The Ubuntu Incident [ edit ] |