Day 1 | Python 30 Days of Code Challenge | Calculate multiplication and sum of two numbers | if else

preview_player
Показать описание
Question: Given two integer numbers, return their product only if the product is equal to or lower than 1000; else, return their sum.

In this series, I will walk you through 30 days of code challenge day-by-day exercises by Py Native.

On day 1, we will solve the given problem by creating a function to take two numbers as parameters. Inside that function, we will multiply two numbers and save their product by creating a product variable. Then use the if else condition to check the product condition and calculate the sum of two numbers.

Thanks for watching!!

Please Subscribe to My Channel !!
Share The video || Like ✓ || Comment!!

Checkout my other Python videos:

#python #30dayschallenge #30daysofcode #pynative
Рекомендации по теме
visit shbcf.ru