*** 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
- Initialize an accumulator variable for the sum.
- Use a for loop to iterate over numbers from 1 to 50 (inclusive)
- Display the final sum (outside the loop to print only once)
Thank you