How To Execute Code AFTER a Return Statement in Python

Опубликовано: 06 Октябрь 2024
на канале: Python With Liu
2,282
69

Usually in a function, nothing happens after a 'return' statement. But with some magic, we can force stuff to happen even after a return statement executes.

Medium Python Blog:   / zlliu  
Personal site: https://zlliu.co

My coding setup:
Logitech MX Master Mouse: https://amzn.to/3T6h2gm
magic keyboard: https://amzn.to/3P4aQV2
magic trackpad: https://amzn.to/4364sCn
twelve south magicbridge: https://amzn.to/3TnAhDK
Dell 34 Inch Curved USBC Monitor S3423DWC: https://amzn.to/3V9USwF
Ergotune Supreme V3: https://amzn.to/3T2ffcm
macbook pro: https://amzn.to/49VJYyy

Cheers