Find the last character

Enter a string, the output of the last character

Input formats:

An input string

Output formats:

The last character

Sample input:

12345678
 

Sample output:

8
print(input()[-1])

  

Guess you like

Origin www.cnblogs.com/SkystarX/p/12334072.html