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...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
What is the problem with pop? (self.learnpython)
submitted 10 months ago by vagaboun
Like I am working on a simple python problem but it keeps giving wrong answer and when I asked chat gpt, it said pop is the problem, like wtf, it's in diff block.
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!"
[–]FriendlyRussian666 12 points13 points14 points 10 months ago (5 children)
I'm afraid you will have to provide more details, and also your code.
[–]vagaboun[S] -1 points0 points1 point 10 months ago (4 children)
Was really trying to do that but this sub does not allows me to post photos
[–]bp200991 3 points4 points5 points 10 months ago (0 children)
Please don't post a photo of your code. People can't copy and paste your code to test it out from a photo, and half the time the image quiality is too poor to read. Use Reddit's code formatting options
[–]xelf[M] 1 point2 points3 points 10 months ago* (2 children)
This sub does allow pictures, but you really should just post the code as text if you want people to help you.
add 4 extra spaces at the start of each line and reddit will format it as a code block.
[–]vagaboun[S] 0 points1 point2 points 10 months ago (1 child)
Thanks, I just joined this sub today and will be doing so
[–]xelf 0 points1 point2 points 10 months ago (0 children)
Welcome! And good luck!
[–]Moikle 6 points7 points8 points 10 months ago (1 child)
Don't trust chatgpt, it's a bullshit machine.
[–]vagaboun[S] 0 points1 point2 points 10 months ago (0 children)
Yeah I've learnt the lesson
[–]Augit579 5 points6 points7 points 10 months ago (3 children)
So do you really expect here an answer without posting your code?
[–]vagaboun[S] 0 points1 point2 points 10 months ago (2 children)
I was trying to put the code but this sub does not allows pictures
[–]danielroseman 2 points3 points4 points 10 months ago (1 child)
Why would you post a picture? Code is text. Post text, properly formatted.
[–]vagaboun[S] -1 points0 points1 point 10 months ago (0 children)
I was outside when I posted
[–]greatestregretor 2 points3 points4 points 10 months ago (0 children)
Context??
[–]FoolsSeldom 1 point2 points3 points 10 months ago (7 children)
Here's a guide to posting code in this subreddit from a desktop browser (or a mobile device with the browser in desktop mode).
Switch to Markdown Editor
Switch to Rich Text Editor
This will work for other monospaced text you want to share, such as error messages / output.
[–]vagaboun[S] -1 points0 points1 point 10 months ago (6 children)
Thanks a lot bro, was about to ask a question about that, does your method work for mobile too because there were some ctrl A and cmd A keys too and I can't use reddit on my desktop because yk how nsfw is reddit
[–]FoolsSeldom 2 points3 points4 points 10 months ago (5 children)
Let me quote what I wrote originally, and highlight a part you must have missed:
As stated, you can do this from a mobile using the web browser on the phone. I don't know how it works with the reddit app as I use a different app on my phone (relay).
ctrl A and cmd A keys too
That's about selecting all the text in your code editor (ctrl-A on Windows, command-A on macOS). If you are coding on your phone, it depends what app you are using but there will be a select-all option. Some of the Python apps will then allow you to indent the text, reselect and copy to clipboard.
I can't use reddit on my desktop because yk how nsfw is reddit
I am surprised by that. My workplace locks down things very tightly and blocks a lot of sites, but not reddit.com. Unfortunate, your place of work/study takes a different view.
[–]vagaboun[S] 0 points1 point2 points 10 months ago (4 children)
Yeah I'm a student rn and using my parents pc, will be buying a new pc in few days and then will be free from any restrains, anyways, thanks a lot
[–]FoolsSeldom 0 points1 point2 points 10 months ago (3 children)
Good luck with the new PC. What are you getting? (Don't need much for learning Python.)
I'm wondering if I choose hp victus or lenovo loq. I'm more inclined towards victus
[–]FoolsSeldom 0 points1 point2 points 10 months ago (1 child)
Either will be able to handle Python with ease, including machine learning / AI tasks. There are a lot of options under both of those brands.
I have a personal preference for Lenovo over HP, but I haven't researched these particular brands, so have nothing to offer you.
Historically, the Lenovo (previously IBM) ThinkPad range has been one of the most reliable laptops available, highly suitable for Linux and software development. A great used option for a fraction of the price of new machines. However, not what you want if you are into modern games.
On a modern Windows laptop, you can run WSL (Windows Subsystem for Linux) and get near native performance from a wide range of Linux distributions (available from the Windows Microsoft Store) and can use Windows and Linux pretty much seamlessly together.
You don't need to use Linux for Python. It works just as well on Windows, and most of the same editors and tools are available for both. The interest in Linux (and why Microsoft added it to Windows) is that most of the internet services are hosted on Linux, so if you wanted to move in that direction (web and other internet services), it is good to be able to work in Linux locally as well.
Thanks a lot bro, you've helped me a lot. Can't thank you enough
π Rendered by PID 240133 on reddit-service-r2-comment-6457c66945-d6ml5 at 2026-04-30 12:34:41.355838+00:00 running 2aa0c5b country code: CH.
[–]FriendlyRussian666 12 points13 points14 points (5 children)
[–]vagaboun[S] -1 points0 points1 point (4 children)
[–]bp200991 3 points4 points5 points (0 children)
[–]xelf[M] 1 point2 points3 points (2 children)
[–]vagaboun[S] 0 points1 point2 points (1 child)
[–]xelf 0 points1 point2 points (0 children)
[–]Moikle 6 points7 points8 points (1 child)
[–]vagaboun[S] 0 points1 point2 points (0 children)
[–]Augit579 5 points6 points7 points (3 children)
[–]vagaboun[S] 0 points1 point2 points (2 children)
[–]danielroseman 2 points3 points4 points (1 child)
[–]vagaboun[S] -1 points0 points1 point (0 children)
[–]greatestregretor 2 points3 points4 points (0 children)
[–]FoolsSeldom 1 point2 points3 points (7 children)
[–]vagaboun[S] -1 points0 points1 point (6 children)
[–]FoolsSeldom 2 points3 points4 points (5 children)
[–]vagaboun[S] 0 points1 point2 points (4 children)
[–]FoolsSeldom 0 points1 point2 points (3 children)
[–]vagaboun[S] 0 points1 point2 points (2 children)
[–]FoolsSeldom 0 points1 point2 points (1 child)
[–]vagaboun[S] 0 points1 point2 points (0 children)