Ad
Strings
Data Types
Code
Diff
  • def last_char(s):
      return list(s).pop()
    • def last_char(s):
    • return s[-1]
    • return list(s).pop()