Lesson 20 Python(level 2) function part 3, import and arguments

Опубликовано: 21 Апрель 2024
на канале: code_way
30
3

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
Create a file with two functions: for multiplying numbers and for division. Import these functions into the file main.py and use them to calculate the results for the numbers 10 and 2.

Task 2
Create a file where you define the function which calculates the area of a rectangle. Then import this function into the file main.py and use it to calculate the area of a rectangle with sides 4 and 6.

Task 3
Write functions that convert weight from kilograms to pounds and vice versa. The default parameter for both functions should be 100. After that, import these functions into the file main.py and use them to convert the weight of 42 kg to pounds and 89 pounds to kilograms. Print the conversion results to the screen.

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


На этой странице сайта вы можете посмотреть видео онлайн Lesson 20 Python(level 2) function part 3, import and arguments длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь code_way 21 Апрель 2024, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 30 раз и оно понравилось 3 зрителям. Приятного просмотра!