0% found this document useful (0 votes)
7 views2 pages

Python 50 Questions

The document lists 50 Python coding questions designed for practice, covering a range of topics such as string manipulation, number theory, data structures, and algorithms. Each question aims to enhance problem-solving skills and coding proficiency in Python. The questions include tasks like reversing strings, checking for palindromes, sorting lists, and implementing data structures like stacks and queues.

Uploaded by

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

Python 50 Questions

The document lists 50 Python coding questions designed for practice, covering a range of topics such as string manipulation, number theory, data structures, and algorithms. Each question aims to enhance problem-solving skills and coding proficiency in Python. The questions include tasks like reversing strings, checking for palindromes, sorting lists, and implementing data structures like stacks and queues.

Uploaded by

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

50 Python Coding Questions for Practice

1. Reverse a string

2. Check palindrome string

3. Count vowels in a string

4. Find factorial of a number

5. Check prime number

6. Find largest element in list

7. Find second largest number

8. Remove duplicates from list

9. Count frequency of elements

10. Swap two numbers

11. Check anagram

12. Count words in string

13. Find first non-repeating character

14. Remove spaces from string

15. Convert string to uppercase/lowercase

16. Check substring present or not

17. Reverse words in sentence

18. Find duplicate characters

19. Replace characters in string

20. String compression

21. Find common elements between two lists

22. Merge two lists

23. Sort list without using sort()

24. Find missing number

25. Move zeros to end

26. Find pairs with given sum

27. Rotate list

28. Find maximum difference

29. Flatten nested list

30. Find intersection of arrays

31. Fibonacci series

32. Armstrong number


33. Perfect number

34. Sum of digits

35. Reverse a number

36. Count digits

37. Check even/odd

38. GCD / HCF

39. LCM

40. Power of number without operator

41. Print pyramid pattern

42. Print number pattern

43. Star pattern problems

44. Diamond pattern

45. Pascal triangle

46. Bubble sort

47. Binary search

48. Linear search

49. Stack implementation

50. Queue implementation

You might also like