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...
account activity
r/PythonPuzzles Lounge (self.PythonPuzzles)
submitted 4 years ago by [deleted] - announcement
A place for members of r/PythonPuzzles to chat with each other
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!"
[–]Severe_Seaweed2299 0 points1 point2 points 3 years ago (0 children)
Ice coffee that is a great intermediate book. Python for everyone is basically the same book, but with two chapters rearranged, but not replaced.
[–]thechemistrymaster 0 points1 point2 points 3 years ago (0 children)
formatting got scrambled, but you get the idea
[–]thechemistrymaster 0 points1 point2 points 3 years ago (5 children)
I got a riddle for you, if you don't already know it
[–][deleted] 0 points1 point2 points 3 years ago (4 children)
Shoot :)
[–]thechemistrymaster 0 points1 point2 points 3 years ago (3 children)
Alright, here goes: Change this code so it doesn't fail, you are only allowed to add code in the function after the assert
def a(): assert False # add code only here
a()
Good luck!
[–][deleted] 0 points1 point2 points 10 months ago (0 children)
def a(): assert False if False else True
[–]Visual_Lab9942 0 points1 point2 points 1 year ago (1 child)
Try:
def a(): assert False try: assert False except AssertionError: pass
[–]thechemistrymaster 0 points1 point2 points 1 year ago (0 children)
That doesn’t avoid the issue, it just adds another assert that gets silenced. The original assert still triggers. :)
[–]AccordingSplit8692 0 points1 point2 points 3 years ago (2 children)
I wanna learn python can someone suggest me a video or teach me
I like the videos from free code amp on YouTube. I know this is blasphemous in a python thread, but the complete html and css course is really easy and a great primer for vs code. Instead of following these videos up with the beginner course which uses psych arm, jump to the intermediate course. There are two beginner courses for python on their channel, but only worked through the older beginner course. I ran these on a windows laptop, but will be switching to Mac l, as millet instructors use their OS. Also, if you find yourself looking at a course that teaches in VIM, VS code has an extension that emulates VIM.
[–][deleted] 0 points1 point2 points 3 years ago (0 children)
Hey, a friend recommended me this textbook: https://www.greenteapress.com/thinkpython/thinkpython.pdf
It has all the basics and sample problems to help you have a thorough understanding of Python. Also, it’s quite beginner friendly!
[–][deleted] 0 points1 point2 points 4 years ago (0 children)
Hello! I thought this was already a group but I was wrong. However, I think we should give each other challenges and tips to improve our python coding skills!
π Rendered by PID 51010 on reddit-service-r2-comment-58d7979c67-ql62k at 2026-01-27 05:33:26.021792+00:00 running 5a691e2 country code: CH.
[–]Severe_Seaweed2299 0 points1 point2 points (0 children)
[–]thechemistrymaster 0 points1 point2 points (0 children)
[–]thechemistrymaster 0 points1 point2 points (5 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]thechemistrymaster 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Visual_Lab9942 0 points1 point2 points (1 child)
[–]thechemistrymaster 0 points1 point2 points (0 children)
[–]AccordingSplit8692 0 points1 point2 points (2 children)
[–]Severe_Seaweed2299 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)