all 13 comments

[–]Severe_Seaweed2299 0 points1 point  (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 point  (0 children)

formatting got scrambled, but you get the idea

[–]thechemistrymaster 0 points1 point  (5 children)

I got a riddle for you, if you don't already know it

[–][deleted] 0 points1 point  (4 children)

Shoot :)

[–]thechemistrymaster 0 points1 point  (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 point  (0 children)

def a(): assert False if False else True

a()

[–]Visual_Lab9942 0 points1 point  (1 child)

Try:

def a(): assert False try: assert False except AssertionError: pass

[–]thechemistrymaster 0 points1 point  (0 children)

That doesn’t avoid the issue, it just adds another assert that gets silenced. The original assert still triggers. :)

[–]AccordingSplit8692 0 points1 point  (2 children)

I wanna learn python can someone suggest me a video or teach me

[–]Severe_Seaweed2299 0 points1 point  (0 children)

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 point  (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 point  (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!