atom-community / atom-script

:runner: Run ( scripts | selections | source ) in Atom
https://atom.io/packages/script
MIT License
733 stars 269 forks source link

input() Python #2229

Open Sr01010000 opened 4 years ago

Sr01010000 commented 4 years ago

Comandos de input() estão dando erro o programa não funciona o terminal não executa Ex: num = int(input('Digite um número: ')) print(num)

resultado: [Command: python -u C:\Users\atom_script_tempfiles\766d2460-e575-11ea-8c32-bf3d864cc3fb]

(nada)

shivambhat commented 4 years ago

error rectified The program written here is correct ,no error in this code and also working on command prompt. Can you please tell me where are you writing this code?

Kacarott commented 4 years ago

Script by default can't handle inputs in python (it just shows output). You can work around this by connecting Script to a terminal package. I explained how here. I hope it is useful.