Python Basics Part 11: Type Hinting, Lambdas, Generators, and more with Python Functions

Publié le: 04 février 2024
sur la chaîne: Teach Me Python
14
0

Here's the time_my_func function to copy into your code editor as you follow along.


from time import time
def time_my_func(func,val):
start=time()
print(func(val))
print(time()-start)

names = ['Bob davis', 'mArY beTh', 'maRtIn lARry']


Sur cette page du site, vous pouvez voir la vidéo en ligne Python Basics Part 11: Type Hinting, Lambdas, Generators, and more with Python Functions durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Teach Me Python 04 février 2024, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 14 fois et il a aimé 0 téléspectateurs. Bon visionnage!