Skip to content

chandan6372-khatua/Python-Assignment2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Python-Assignment2# Python-Assignment2

Module 3: Control Structures in Python

Task 1: Check if a Number is Even or Odd

  • Takes an integer input from the user.
  • Checks if the number is even or odd using if-else.
  • Displays the result.

Task 2: Sum of Integers from 1 to 50

  • Uses a for loop to iterate from 1 to 50.
  • Calculates the sum of all integers.
  • Displays the final sum.

Files Included

  • task1.py → Program to check even/odd number.
  • task2.py → Program to calculate sum of numbers from 1 to 50.

How to Run

  1. Clone the repository or download the files.
  2. Run the scripts using:
    python task1.py
    python task2.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages