#Python #Shorts
Did you see that weird slash (/) in the list of parameters a function accepts in Python?
You may not have yet since it's only for Python 3.8 and above right now. But its purpose is to not allow any named arguments. So you can't pass in arguments by name, you have to put them in the right positions for each argument on the left of a slash (/). Anything after a slash (/) can be named though!
Any ideas what this can be used for?
-------------------------------------------------------------------------------------
Links:
Blog: https://evgenyurubkov.com
Twitter: / evgenyurubkov
Instagram: / evgenyurubkov
Youtube: / @codevev
Sur cette page du site, vous pouvez voir la vidéo en ligne Python - Slash (/) as a Function Parameter??? durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur codevev 15 mai 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 586 fois et il a aimé 14 téléspectateurs. Bon visionnage!