*** Control Structures in Python***
Tutedude Assignment 2
checking if a numbers is Even or odd
- In the program i took number as a variables and assigned user input to that variable.
- Here the user given input (means number)is divided by 2 == to "0" .
- if this condition is true that number will be even otherwise it's odd numbers.
Sum of Integers from 1 to 50 using a loop
1.Here i took total_sum as a variable and took a range from 1 to 51 (here number 51 is not included in the range).
2.Applied sum function to the range.
Thank you