Skip to content

yash14063/assignment_2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Python Assignment 2

This repository contains the solutions for Assignment 2 of Module 3: Control Structures in Python.

Tasks

Task 1: Check if a Number is Even or Odd

  • The program takes an integer input from the user and checks if it is even or odd.
  • Script: task1.py

Task 2: Sum of Integers from 1 to 50 Using a Loop

  • The program calculates the sum of integers from 1 to 50 using a for loop.
  • Script: task2.py

How to Run

  1. Clone the repository.
  2. Run the scripts using Python:
    • python task1.py
    • python task2.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages