Ad
Strings
Data Types
Code
Diff
  • def last_char(str):
      return str[len(str)-1]
    • def last_char(str):
    • return str[-1]
    • return str[len(str)-1]