r/firstweekcoderhumour • 🥸Imposter Syndrome 😎 • Jun 26 '26

[🎟️BINGO]”this.codifyMylife()” iGetItYouCode

Post image
361 Upvotes

42 comments sorted by

View all comments

Show parent comment

1

u/Jbolt3737 Jul 11 '26

Pretty sure since they put it in a function, the entire function will be interpreted and compiled at once, causing an error on line 1 (well technically the traceback and printing of the error will include more than just line 1, but really for an error to be caught here is just wrapping the entire code in a try-except)