1

I am new to atom and python in general. I was able to print hello world in atom using python, but I cannot do the program of calculating the circle's area.

Here is what I get. I can do this in IDLE, but I do not know why I cannot input a radius here. Can anyone tell me how to solve it? Thank you!

(I have already saved the file) 1

5
  • You need to use a terminal to run your program. Atom is a text editor, not an IDE. Although, you can install extensions that can make it function like an IDE. Commented May 15, 2017 at 4:42
  • 1
    I have already installed "script", which allows atom to run the code, and I have successfully used atom to run hello world. Commented May 15, 2017 at 4:43
  • 2
    Atom will not allow you to use the input() function in python. I forgot exactly why, but just run the file from the command line instead. Atom is really more of a "web IDE"(if it can be called an IDE at all). Commented May 15, 2017 at 4:43
  • @ChristianDean what is the command line? Commented May 15, 2017 at 4:45
  • 3
    @R.T. The command line or terminal, is a basic text interface for your computer. It allows you to input commands to your OS, and see the output(if any) that running those commands produce. If you've ever used a REPL, then it is similar in concept. If you new to the command line, I suggest taking a basic tutorial to familiarize yourself with it. Commented May 15, 2017 at 4:47

2 Answers 2

1

I got the same issue if you use atom-python-run instead of script it works

Sign up to request clarification or add additional context in comments.

Comments

0

script cannot run input command, you have to use terminal to run it.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.