Lesson 19 Python(level 2) function part 2, return arguments

Publié le: 14 avril 2024
sur la chaîne: code_way
37
5

Hi, thanks for viewing.

Automation QA course Python(pytest)    • QA Automation  

Here's how to install PyCharm and Python:    • Installing Python and PyCharm on macO...  

Here's how to work with Git:    • GitHub UI: Edit and download code wit...  

Python for beginners:    • Lesson 2 Python: Data input (input), ...  

Python level 2:    • Python level 2  

Tasks for better understanding:
Task 1
Write a function sub_numbers that takes two arguments num1 and num2 and returns the result of the subtraction.
Task 2
Write a function check_even_odd that takes a number "number" and returns the string "Even" if the number is even, and "Odd" if the number is odd. (An even number is a number that is divisible by 2 without remainder).
Task 3
Write a function find_max that takes three numbers num1, num2, and num3 and returns the largest of them.

Test based on this lesson:
https://docs.google.com/forms/d/e/1FA...


Sur cette page du site, vous pouvez voir la vidéo en ligne Lesson 19 Python(level 2) function part 2, return arguments durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur code_way 14 avril 2024, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 37 fois et il a aimé 5 téléspectateurs. Bon visionnage!