1. Write a program to convert the temperature given in Celsius to Fahrenheit.
2. Write a program to calculate the area and circumference of a circle without using the
math library.
3. Write a program to find the square root of a number input by the user.
4. Write a program to find the greatest of three numbers.
5. Write a program to check whether a given input is an alphabet or not.
6. Write a program to check whether a given input character is uppercase, lowercase, or a
digit.
7. Write a program to reverse the elements of a string.
8. Write a program to create an abbreviated name from the entered name of the user.
Take three inputs: first name, middle name, and last name.
9. Write a program to input the marks of 5 subjects and print their average using:
a. Only the list datatype
b. Five separate variables
10. Write a program to swap the values of two variables using the following methods:
a. Using three variables
b. Using two variables and only arithmetic operators
c. Using XOR operator
d. Using tuple unpacking
11. Write a program to find the minimum element of a list.
12. Write a program to count the number of unique elements in a list.
13. Write a program to capitalize the first character of all the words in a string.
14. Write a program to create a simple calculator that can perform basic arithmetic
operations.
15. Write a program to check whether a given number is prime or not.
16. Write a program to calculate and print the sum of all even numbers and odd numbers
separately in a given range.
17. Write a program to calculate the factorial of a number using a loop.
18. Write a program to print all the prime numbers in a given range including the boundary
values.
19. Write a program to print a half pyramid pattern with rows equal to n (entered by the
user).
Example:
*
**
***
****
20. .Write a program to print a half pyramid pattern with rows equal to n (entered by the
user).
Example:
1
12
123
1234
21. Write a program to print a half pyramid pattern with rows equal to n (entered by the
user).
Example:
A
AB
ABC
ABCD
22. Write a program to print a half pyramid pattern with rows equal to n (entered by the
user).
Example:
1
22
333
4444
23. Write a program to insert an element into a sorted list of elements while maintaining the
sorted order.
24. Write a program to circulate the elements of a list n steps to the right.
Example:
Input: [1,2,3,4], n = 1
Output: [4,1,2,3]