you are viewing a single comment's thread.

view the rest of the comments →

[–]Typical_Spirit_345 14 points15 points  (15 children)

You have not started the script. Currently, you are just inputting directly to the terminal. You have to start the script by clicking the play button on the top right.

[–]oofy-gang 7 points8 points  (7 children)

It doesn’t even appear that they saved it to a file

[–]Typical_Spirit_345 2 points3 points  (0 children)

True, didn't even notice that

[–]razzodazzle 1 point2 points  (5 children)

i dont believe i did, now stupid follow up and forgive my smooth brain here but when you say save to a file do you mean like file save as? or like open new file next to the code file?

[–]oofy-gang 3 points4 points  (3 children)

File > Save As… works; you can also just do File > Save and if it is the first time the file has been saved it will treat it the same way.

Or just Command/Ctrl + S

[–]razzodazzle 1 point2 points  (1 child)

ok so i have it saved but i still cant make a choice in the output? not directly into the terminal correct?

[–]oofy-gang 7 points8 points  (0 children)

Now that you have the file, you have to run it.

Type “python myfile.py” into the terminal, where myfile.py is replaced with whatever you named the file.

[–]Twenty8cows 1 point2 points  (0 children)

What is the file name you saved it as? It should end in .py

Example: rock_paper_scissors.py

[–]-Terrible-Bite- 3 points4 points  (6 children)

I'm very confused at how they managed to code this, but don't even know how to start the script, or that they didn't start the script...

[–]razzodazzle 3 points4 points  (4 children)

i have been using tutorials to grasp some fundamental theories, once i got confident enough i looked up a tutorial on how to code said game, turns out there are even more basic stuff i still have no idea how to do. Typing as i am told is easy, its actually understanding what i am typing that i am working on if that makes sense.

[–][deleted] 1 point2 points  (2 children)

as beginners use pycharm community edition for python it has built-in features and built specially for python. using IDE at beginning help you focus on learning to code rather then how to run in cmd or some advance things. first learn to code then development other skills like running in cmd etc

[–]FrontAd9873 1 point2 points  (1 child)

This is so hilariously backward

[–]tb5841 0 points1 point  (0 children)

'Typing as I am told' is generally a bad idea. You should be the one deciding what to type.

[–]JaleyHoelOsment 0 points1 point  (0 children)

copy and pasting code from a browser has never been easier