Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
len function -
#6
If you don't know, python supports also negative indexes
name = input("provide an example of name:   ")
print(name[-1])
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
len function - - by jojotte - Dec-22-2018, 05:41 PM
RE: len function - - by ichabod801 - Dec-22-2018, 06:12 PM
RE: len function - - by jojotte - Dec-22-2018, 06:20 PM
RE: len function - - by ichabod801 - Dec-22-2018, 06:31 PM
RE: len function - - by jojotte - Dec-22-2018, 06:32 PM
RE: len function - - by buran - Dec-22-2018, 07:05 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020