You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The doc of reversed() says seq parameter as shown below:
reversed(seq)
Return a reverse iterator. seq must be an object which has a reversed() method or supports the sequence protocol (the len() method and the getitem() method with integer arguments starting at 0).
But the docstring of reversed() says sequence parameter as shown below:
print(help(reversed))
# class reversed(object)# | reversed(sequence, /)# |# | Return a reverse iterator over the values of the given sequence.
So, the parameter name should be the same to avoid confusion.