1.Create a variable named name and assign your name to it. Then print the value of the variable.

Image description

2.Create a variable age and assign your age to it. Later, reassign the variable with a new value and print the new value.

Image description

3.Assign the values 5, 10, and 15 to three variables a, b, and c in a single line. Print their values.
Ans:TypeError on 4th statement, because we're trying to concatenate integers (a, b, c) with strings

Image description

4.Swap the values of two variables x and y without using a third variable. Print their values before and after swapping.

Image description

5.Define constants PI with appropriate values and print them.
Ans: constants are typically written in all uppercase letters with underscores separating words. However, Python does not enforce this, so constants are not truly immutable. You can still override.

Image description

6.Write a program that calculates the area of a circle using the constant PI and a variable radius. Print the area.
Ans: ** is Squared

Image description

7.Define constants for the length and width of a rectangle. Calculate and print the area.

Image description

8.Define a constant for π (pi) and a variable for the radius. Calculate and print the circumference of the circle.

Image description