まずコードです。(少々長いです)

deg = input('')
dis = input('')

deg = int(deg)
dis = int(dis)

deg /= 10

dir = '0'
w = '0'

if deg >= 11.25 and deg < 33.75:
    dir = 'NNE'
elif deg >= 33.75 and deg < 56.25:
    dir = 'NE'
elif deg >= 56.25 and deg < 78.75:
    dir = 'ENE'
elif deg >= 78.75 and deg < 101.25:
    dir = 'E'
elif deg >= 101.25 and deg < 123.75:
    dir = 'ESE'
elif deg >= 123.75 and deg < 146.25:
    dir = 'SE'
elif deg >= 146.25 and deg < 168.75:
    dir = 'SSE'
elif deg >= 168.75 and deg < 191.25:
    dir = 'S'
elif deg >= 191.25 and deg < 213.75:
    dir = 'SSW'
elif deg >= 213.75 and deg < 236.25:
    dir = 'SW'
elif deg >= 236.25 and deg < 258.75:
    dir = 'WSW'
elif deg >= 258.75 and deg < 281.25:
    dir = 'W'
elif deg >= 281.25 and deg < 303.75:
    dir = 'WNW'
elif deg >= 303.75 and deg < 326.25:
    dir = 'NW'
elif deg >= 326.25 and deg < 348.75:
    dir = 'NNW'
else:
    dir = 'N'


dis /= 60

if dis >= 0.0 and dis <= 0.2:
    w = '0'
    dir = 'C'
elif dis >= 0.3 and dis <= 1.5:
    w = '1'
elif dis >= 1.6 and dis <= 3.3:
    w = '2'
elif dis >= 3.4 and dis <= 5.4:
    w = '3'
elif dis >= 5.5 and dis <= 7.9:
    w = '4'
elif dis >= 8.0 and dis <= 20.7:
    w = '5'
elif dis >= 10.8 and dis <= 13.8:
    w = '6'
elif dis >= 13.9 and dis <= 17.1:
    w = '7'
elif dis >= 17.2 and dis <= 20.7:
    w = '8'
elif dis >= 20.8 and dis <= 24.4:
    w = '9'
elif dis >= 24.5 and dis <= 28.4:
    w = '10'
elif dis >= 28.5 and dis <= 32.6:
    w = '11'
elif dis >= 32.7:
    w = '12'

print(dir+' '+w)

このコードはAtcoder BIginnerContest001のC問題のコードなのですが、これを手元の環境
Windows10 Pro 64bit
Python 3.7.0
Pycharm
で実行したところなんのエラーも出なかったのですが、下記の環境
 Docker version 18.06.0-ce, build 0ffa825
 Pythonコンテナ
で実行したところ

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'dis' is not defined

というエラーが出ます。一体原因は何なのでしょうか?

追記
DockerコンテナはKitematicを用いて起動したので、どのようなコマンドを用いて起動したかはわかりません。ですが、Kitematicでログを見たところ

Python 3.7.0 (default, Aug  4 2018, 02:33:39) 
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 2018-08-12T10:48:10.714547900Z Python 3.7.0 (default, Aug  4 2018, 02:33:39) 
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.

となっていたので、おそらくPython3が起動していると思われます。