4 Fixed formatting
source | link

Python 3, 11 1818 34 Bytes

import sys;print(sys.argv[-1][-1])

Usage via running the program as a python script on the command line. Input is provided as the last argument to the program.

Try it online!

Python 3, 11 18 34 Bytes

import sys;print(sys.argv[-1][-1])

Usage via running the program as a python script on the command line. Input is provided as the last argument to the program.

Try it online!

Python 3, 11 18 34 Bytes

import sys;print(sys.argv[-1][-1])

Usage via running the program as a python script on the command line. Input is provided as the last argument to the program.

Try it online!

3 New lines...
source | link

Python 3, 11 18 34 Bytes

print(inputimport sys;print()[sys.argv[-1][-1])

Usage via running the program as a python script on the command line.

If running inside the interpreter, you may omit the print call Input is provided as the interpreter echos the output oflast argument to the functionprogram.

Try it online!

Python 3, 11 18 Bytes

print(input()[-1])

Usage via running the program as a python script on the command line.

If running inside the interpreter, you may omit the print call as the interpreter echos the output of the function.

Python 3, 11 18 34 Bytes

import sys;print(sys.argv[-1][-1])

Usage via running the program as a python script on the command line. Input is provided as the last argument to the program.

Try it online!

2 Took into account running program from file
source | link

Python 3, 1111 18 Bytes

print(input()[-1])

Usage via running the program as a python script on the command line.

If running inside the interpreter, you may omit the print call as the interpreter echos the output of the function.

Python 3, 11 Bytes

input()[-1]

Python 3, 11 18 Bytes

print(input()[-1])

Usage via running the program as a python script on the command line.

If running inside the interpreter, you may omit the print call as the interpreter echos the output of the function.

1
source | link