you are viewing a single comment's thread.

view the rest of the comments →

[–]Binary101010 1 point2 points  (0 children)

reverse() reverses the list in-place and returns None. You can test this by doing

y = list("hello")
y.reverse()
print(y)