For example, If there's an error, we're going to start over from the beginning. Which one should I use, try exception or something?
python
Trust your gut!
def just_get_it_done() :
try:
result = do_something()
return result
except Exception as swear:
print(str(swear))
just_get_it_done()
just_get_it_done()
© 2024 OneMinuteCode. All rights reserved.