Oktatás * Programozás 1 * Szkriptnyelvek Teaching * Programming 1 (BI) * Scripting Languages Félévek * aktuális (2023/24/2) Linkek * kalendárium |
EnPy3 /
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 here print(a) # [1, 2, 5, 6, 9] |
Blogjaim, hobbi projektjeim * The Ubuntu Incident [ edit ] |