# 6 Simple and Tricky Python Programming Questions for Interview

## 1. Write a Python program to print the following string in a specific format (see the output).

Sample Output ## 2. Write a Python program which accepts the radius of a circle from the user and compute the area.

Sample Output:

r=3.4 Area=36.31681107549801

## 3. Write a Python program which accepts the user's first and last name and print them in reverse order with a space between them.

Sample Output:

Result= Sharma Rahul

## 4. Write a Python program which check whether the number entered by user is even or odd.

Sample Output:

Enter the number= 56

Number is even

## 5. Write a Python program to calculate the sum of three given numbers, if the values are equal then return three times of their sum.

Sample Output:

Enter First number = 3

Enter Second number = 3

Enter Third number = 3

Result is 9

## 6. Write a Python program to solve (x + y) * (x + y).

Sample Output:

Enter value of x = 5
Enter value of y = 6
Result : (4 + 3) ^ 2) = 121