Atom & python : trouble


#1

Hello, when i print for output : print(2 * 2) and trigger “run” - it’s ok (e.g output = 4).
but when i write the code:

i = 0
while i <2:
name = ‘kotroj’
password = input('enter password: ')
if password != name:
print(‘wrong, try again’)
if password == name:
print(‘come in’)
break

there is no output at all: nothing happend.
By the way, in pycharm this code outputs easily.
Any ideas?
All required packages are installed.


#2

Atom doesn’t run code. But I guess you’re using the script package, which doesn’t support user input AFAIK.


#3

Which (or what) script package with AFAIK support should I install?


#4

AFAIK: As far as I know

For the package, you could use a terminal emulator such as platformio-ide-terminal.

You could also try Hydrogen, which I downloaded just now and can confirm it takes user input.