#Assignment1: #Task 1: Perform Basic Mathematical Operations Takes two numbers as input from the user. Performs: Addition Subtraction Multiplication Division Result: Displays the result of each operation.
Output: Enter first number: 5 Enter second number: 2 Addition: 7 Subtraction: 3 Multiplication: 10 Division: 2.5
#Task 2: Create a Personalized Greeting Problem Statement: Write a Python program that: 1. Takes a user's first name and last name as input. 2. Concatenates the first name and last name into a full name. 3. Prints a personalized greeting message using the full name.
Expected Output is: Enter your first name: John Enter your last name: Doe Hello, John Doe! Welcome to the Python program
Assignment2:
Task 1: Check if a Number is Even or Odd Problem Statement: Write a Python program that: 1. Takes an integer input from the user. 2. Checks whether the number is even or odd using an if-else statement. 3. Displays the result accordingly.
Task 2: Sum of Integers from 1 to 50 Using a Loop Problem Statement: Write a Python program that: 1. Uses a for loop to iterate over numbers from 1 to 50. 2. Calculates the sum of all integers in this range. 3. Displays the final sum.