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

TCS 50 Python Questions Full

The document contains a list of 50 Python programming questions ranging from basic to intermediate levels, covering various concepts such as string manipulation, number operations, and data structures. It also includes key operations for the Pandas library and basic plotting functions using Matplotlib. This resource serves as a comprehensive guide for practicing Python coding and data visualization techniques.

Uploaded by

aathisankart
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)
2 views2 pages

TCS 50 Python Questions Full

The document contains a list of 50 Python programming questions ranging from basic to intermediate levels, covering various concepts such as string manipulation, number operations, and data structures. It also includes key operations for the Pandas library and basic plotting functions using Matplotlib. This resource serves as a comprehensive guide for practicing Python coding and data visualization techniques.

Uploaded by

aathisankart
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

TCS Python (50 Questions) + Pandas + Matplotlib

Python Questions (Basic to Intermediate)

1. Reverse a number
2. Palindrome check (string)
3. Count vowels
4. Largest element in list
5. Remove duplicates from list
6. Frequency of elements
7. Fibonacci series
8. Armstrong number
9. Second largest element
10. Two sum problem
11. Move zeros to end
12. Find missing number
13. String compression
14. Pattern printing
15. Sum of digits
16. Even or odd
17. Swap two numbers
18. Count digits
19. Factorial
20. Prime check
21. Reverse string (no slicing)
22. GCD of two numbers
23. Sum of list
24. Count words in sentence
25. Second smallest element
26. String rotation check
27. Remove spaces
28. Find duplicates
29. Merge sorted lists
30. Character frequency
31. Move negatives
32. Longest word
33. Balanced parentheses
34. Multiplication table
35. ASCII value
36. Leap year
37. Sum of N numbers
38. Smallest element
39. Uppercase/lowercase count
40. Perfect number
41. Reverse words
42. Common elements
43. Check sorted list
44. Kadane’s algorithm
45. First non-repeating char
46. Rotate list
47. Array intersection
48. Substring check
49. Longest substring without repeat
50. Majority element

Pandas Key Operations

[Link]()
[Link]()
[Link]()
df[df['col'] > value]
[Link]('col').mean()
df['new'] = df['col'] * 2

Matplotlib Basics

[Link](x,y)
[Link](x,y)
[Link](x,y)
[Link](data)
[Link]()

You might also like