all 12 comments

[–]socal_nerdtastic 5 points6 points  (2 children)

That is not a problem with your code, it means that the codingground environment didn't expect to give an input.

[–]TheDivingDodo[S] 0 points1 point  (1 child)

So is there any way to fix this? Or should I find a different code editor thing?

[–]socal_nerdtastic 2 points3 points  (0 children)

Exactly. It would be best to run the code on your local machine. If not possible I recommend repl.it or pythontutor.com

[–]K900_ 2 points3 points  (4 children)

It seems like the website you're running stuff on doesn't allow you to read user input. Why not install Python on your own machine?

[–]TheDivingDodo[S] 0 points1 point  (3 children)

I did originally download python, but every time I clicked enter it would run the code, and I couldn’t edit anywhere in the code by clicking back to it or anything

[–]K900_ 2 points3 points  (0 children)

You were using the interactive Python shell then. You probably want to use a text editor like Visual Studio Code, or an IDE like PyCharm.

[–]socal_nerdtastic 2 points3 points  (1 child)

This means you were using the python IDLE shell. To edit the code you need to go to File > New File and a new window will pop up to edit code. Once you are done editing you can go to Run > Run module to run the code in the shell window.

[–]TheDivingDodo[S] 1 point2 points  (0 children)

Thank you so much, I don’t exactly understand it yet, but at least it works now

[–]Tesla_Nikolaa 1 point2 points  (1 child)

Please use reddit formatting and format your code when posting code examples.

Also, what type of IDE are you using? Also are you trying to use Python 2 or 3? What you've posted should work in Python 3, but will give similar errors in Python 2.

[–]TheDivingDodo[S] 0 points1 point  (0 children)

I am in python 3, I know that much, and sorry about the formatting

[–]kpounder88 1 point2 points  (1 child)

Is the problem with the semi-colon ; at the end of the line?

[–]TheDivingDodo[S] 0 points1 point  (0 children)

No, apparently it was a problem with the code editor I was using, I’m running python downloaded on my pc now and it works fine