structure opened this issue on Jun 27, 2019 ยท 94 posts
adp001 posted Sun, 22 May 2022 at 7:00 AM
Another thing: Strings are arrays of characters.
So, list(reversed("abcdefg") ) returns ['g', 'f', 'e', 'd', 'c', 'b', 'a']. list(s[::-1]) returns the same.
Another thing: Strings are arrays of characters.
So, list(reversed("abcdefg") ) returns ['g', 'f', 'e', 'd', 'c', 'b', 'a']. list(s[::-1]) returns the same.