Monday, 7 February 2022

Python practice programs for beginners - Day 10


Python practice programs for beginners- millioninformations

Day 9 Solution:

Day 10:  If-Else statement

In the above, we have used two if statements but we can reduce the number of lines of code by using an else statement.

You can see the number of lines of code decreased. 

The If else get applied in many scenarios.

Day 10 Task:

Get a number from the user and find whether the given number is an odd number or an even number.