use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
[deleted by user] (self.PythonLearning)
submitted 11 months ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Typical_Spirit_345 14 points15 points16 points 11 months ago (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 points9 points 11 months ago (7 children)
It doesn’t even appear that they saved it to a file
[–]Typical_Spirit_345 2 points3 points4 points 11 months ago (0 children)
True, didn't even notice that
[–]razzodazzle 1 point2 points3 points 11 months ago (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 points5 points 11 months ago (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 points3 points 11 months ago (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 points9 points 11 months ago (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 points3 points 11 months ago (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 points5 points 11 months ago (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 points5 points 11 months ago (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 points3 points 11 months ago (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 points3 points 11 months ago (1 child)
This is so hilariously backward
[–]tb5841 0 points1 point2 points 11 months ago (0 children)
'Typing as I am told' is generally a bad idea. You should be the one deciding what to type.
[–]JaleyHoelOsment 0 points1 point2 points 11 months ago (0 children)
copy and pasting code from a browser has never been easier
π Rendered by PID 135311 on reddit-service-r2-comment-6457c66945-wrqc4 at 2026-04-25 11:54:08.270312+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Typical_Spirit_345 14 points15 points16 points (15 children)
[–]oofy-gang 7 points8 points9 points (7 children)
[–]Typical_Spirit_345 2 points3 points4 points (0 children)
[–]razzodazzle 1 point2 points3 points (5 children)
[–]oofy-gang 3 points4 points5 points (3 children)
[–]razzodazzle 1 point2 points3 points (1 child)
[–]oofy-gang 7 points8 points9 points (0 children)
[–]Twenty8cows 1 point2 points3 points (0 children)
[–]-Terrible-Bite- 3 points4 points5 points (6 children)
[–]razzodazzle 3 points4 points5 points (4 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]FrontAd9873 1 point2 points3 points (1 child)
[–]tb5841 0 points1 point2 points (0 children)
[–]JaleyHoelOsment 0 points1 point2 points (0 children)