0% found this document useful (0 votes)
3 views6 pages

Python 25 Programming Questions

The document contains a list of 25 Python programming practice questions aimed at beginners. Each question prompts the user to write a specific program, covering various fundamental programming concepts such as input/output, control structures, and data manipulation. The questions range from simple tasks like printing 'Hello World' to more complex problems like generating Fibonacci series and merging dictionaries.

Uploaded by

pankaj701162j
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views6 pages

Python 25 Programming Questions

The document contains a list of 25 Python programming practice questions aimed at beginners. Each question prompts the user to write a specific program, covering various fundamental programming concepts such as input/output, control structures, and data manipulation. The questions range from simple tasks like printing 'Hello World' to more complex problems like generating Fibonacci series and merging dictionaries.

Uploaded by

pankaj701162j
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Python Programming Practice Questions

1. Write a program to print “Hello World”.

__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________

2. Write a program to input two numbers and print their sum. Note(No must be from
keyboard)

__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________

3. Write a program to find the area of a rectangle.

__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________

4. Write a program to check whether a number is even or odd.

__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________
5. Write a program to find the largest of two numbers.

__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________

6. Write a program to find the largest among three numbers using if-elif-else.

__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________

7. Write a program to check whether a number is divisible by 5 and 11.

__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________

8. Write a program to calculate factorial of a positive number using loop.

__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________

9. Write a program to print multiplication table of a given number.


__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________

10. Write a program to count total vowels in a string.

__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________

11. Write a program to reverse a string without using slicing.

__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________

12. Write a program to check whether a string is palindrome or not.

__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________

13. Write a program to find maximum and minimum element from a list.

__________________________________________________________

__________________________________________________________
__________________________________________________________

__________________________________________________________

14. Write a program to count frequency of an element in a list.

__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________

15. Write a program to create a dictionary of student names and marks, then display
all records.

__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________

16. Write a program to find the sum of digits of a number.

__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________

17. Write a program to check whether a number is prime or not.

__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________
18. Write a program to print Fibonacci series up to n terms.

__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________

19. Write a program to find the average of elements in a list.

__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________

20. Write a program to sort a list in ascending order.

__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________

21. Write a program to remove duplicate elements from a list.

__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________

22. Write a program to count uppercase and lowercase letters in a string.


__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________

23. Write a program to input a sentence and count total words.

__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________

24. Write a program to merge two dictionaries into one dictionary.

__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________

25. Write a program to generate a random number between 1 and 100 using random
module.

__________________________________________________________

__________________________________________________________

__________________________________________________________

__________________________________________________________

You might also like