0 votes
in Python by
Can we reverse a list in Python?

1 Answer

0 votes
by

Yes, we can reserve a list in Python using the reverse() method. The code can be depicted as follows.

def reverse(s): 

  str = "" 

  for i in s: 

    str = i + str

  return str

Related questions

0 votes
asked May 24, 2020 in Python by SakshiSharma
0 votes
asked May 24, 2020 in Python by SakshiSharma
...