Is it possible to create this with a function in python ? From here :  To here :  Thanks !
Is it possible to create this with a function in python ?

From here :
To here :
Thanks !