Skip to content

Abrarpat/python-assignment-module3

Repository files navigation

python-assignment-module3

Python Assignment - 1

Task 1: input()

  • Takes an user input from the user.
  • Checks the input and print with the hello .....
  • Displays the result.

Task 2: arithmatic oprations

  • Takes a positive integer as input.
  • Calculates the sum of all numbers from 1 up to that integer.
  • Displays the result.

Python Assignment - 2 (Control Structures)

Task 1: Check if a Number is Even or Odd

  • Takes an integer input from the user.
  • Checks whether the number is even or odd using an if-else statement.
  • 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 in this range.
  • Displays the final sum.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages