I show you how to write functions that can return values in your Python programs. This allows you to write functions that can take some arguments (inputs), do something with the arguments (processing), and get the result out (output).
We start off by comparing void functions to value-returning functions.
Then, I write a sample program that walks you through writing functions to add two numbers and return the sum, returning the results of arithmetic expressions, returning a literal, and returning multiple values from the same function.
We then use those values returned from the functions for further processing.
// Learn More //
Check out my complete Python videos playlist:
• Playlist
Sur cette page du site, vous pouvez voir la vidéo en ligne Python Programming Tutorial Part 2: Value Returning Functions durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Professor Hank Stalica 07 October 2018, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 9,469 fois et il a aimé 159 téléspectateurs. Bon visionnage!