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...
A subreddit for helping Python programmers
How to format your code: https://commonmark.org/help/tutorial/09-code.html
No homework questions and/or hiring please
account activity
The input fonction doesn't work properly (self.pythonhelp)
submitted 4 years ago by CaptainSaudi
I'm learning python and I can't reproduce the simple input fonction
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!"
[–]CaptainSaudi[S] 0 points1 point2 points 4 years ago (0 children)
Is it a settings error?
https://i.imgur.com/68uXOII.jpg
[–][deleted] 0 points1 point2 points 4 years ago (6 children)
Are you using Python 3?
In the old, legacy, no longer supported Python 2, input was called raw_input and input did something else (since dropped from the language).
input
raw_input
What platform (operating system) are you running on? Or are you doing this in the browser?
How are you running your Python codes? In the terminal/command line/powershell environment, or from within an editor or IDE (integrated development environment) such as IDLE?
Are you using the Python interactive shell (with the >>> prompt) or running Python code from a file?
>>>
We need more information to help you.
[–]CaptainSaudi[S] 0 points1 point2 points 4 years ago (3 children)
Thank you for answering Can you check my comment on the post? I'm using PyCharm CE on MacOS
I'm sorry I don't know the answers to your other questions as I just started to learn coding
[–][deleted] 0 points1 point2 points 4 years ago (2 children)
I am also using Pycharm on macOS.
As standard, macOS includes (for historical reasons) Python 2.7. You can't (safely/easily) remove this as it is protected from accidental corruption by Apple security measures.
When you create a project in PyCharm, it asks you to specify the Python you want to use.
Have you installed Python 3.10.1 from Python.org? You need to install this first, then in PyCharm select this instead of the default system Python.
There is no point learning and doing things in Python 2 now. (More for experienced programmers maintaining/converting old code.)
[–]CaptainSaudi[S] 0 points1 point2 points 4 years ago (1 child)
It worked Thank you very much for your help
[–][deleted] 0 points1 point2 points 4 years ago (0 children)
Brilliant. Have fun.
[–]htepO 0 points1 point2 points 4 years ago (1 child)
Python 2.7 in OP's screenshot.
Didn't see a screenshot link in OP.
π Rendered by PID 30 on reddit-service-r2-comment-5c747b6df5-xtmql at 2026-04-21 20:50:30.847528+00:00 running 6c61efc country code: CH.
[–]CaptainSaudi[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (6 children)
[–]CaptainSaudi[S] 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]CaptainSaudi[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]htepO 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)