Just explain me how it is possible:
сhar = input()
print(char)
Traceback (most recent call last): File "test.py", line 2, in print(char) NameError: name 'char' is not defined
To make things more interesting, consider running that code in repl.it with double-checked python version:
import sys
print(f'Python version on this machine:\n{sys.version}')
сhar = input()
print(char)
Python version on this machine:
3.7.4 (default, Jul 13 2019, 14:20:24)
[GCC 6.3.0 20170516]
type anything
Traceback (most recent call last):
File "main.py", line 5, in
print(char)
NameError: name 'char' is not defined