shotsTaken = 0
while not drunk:
take_shot()
shotsTaken += 1
if shotsTaken == 14:
drunk = True
blackout()
52
Anonymous145w
ERROR: NO MEMORY ALLOCATION
27
Anonymous145w
TCP/IP handshake to verify entry into the party
17
Anonymous145w
while true more like
11
Anonymous145w
im bad at both coding and getting girls
11
Anonymous145w
what does catch do? havenāt learned that one yet
1
Anonymous#7145w
Iām just shit at coding have the girlfriend
5
Anonymous#11145w
it catches an exception or error, some languages require to define the class of the exception you are catching.
5
Anonymous#11145w
if anything in the try block throws an error, instead of exiting, the code in the catch block will run. thereās also sometimes a finally block that will run no matter what after the try or catch block.
2
Anonymous#11145w
the concept is usually called āException Handlingā if you want to learn more
3
Anonymous#2145w
best comment š
5
Anonymous145w
Your desire for side effects offend me.
9
Anonymous145w
it does
3
Anonymous#15145w
No it doesnāt?
3
Anonymous#13145w
As the writer of this here algorithm, I made the choice to put the incrementer outside the take_shot function so that my post would be easier to read. It works either way
Instant syntax error. Possible infinite loop too.