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

Python Interview Coding Questions

The document lists various Python coding interview questions categorized into sections such as removing duplicates from lists, pattern printing, repeated coding questions, array/list-based problems, and number problems. Each section contains specific tasks like rotating arrays, checking for palindromes, and finding GCD and LCM. These questions are commonly asked in interviews for companies like TCS, Infosys, Accenture, and Wipro.

Uploaded by

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

Python Interview Coding Questions

The document lists various Python coding interview questions categorized into sections such as removing duplicates from lists, pattern printing, repeated coding questions, array/list-based problems, and number problems. Each section contains specific tasks like rotating arrays, checking for palindromes, and finding GCD and LCM. These questions are commonly asked in interviews for companies like TCS, Infosys, Accenture, and Wipro.

Uploaded by

953624243089
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 INTERVIEW CODING QUESTIONS

1. Remove duplicates from a list while maintaining order.


2. Rotate an array by k positions.
3. Find the missing number in a sequence of integers.
4. Find all duplicate elements in a list.
5. Move all zeroes in a list to the end while keeping the order of other elements

Pattern Printing (Very Common in TCS/Wipro)

[Link] a pyramid of stars

2. Print an inverted pyramid.

[Link] Floyd’s triangle.

[Link] Pascal’s triangle.

[Link] a diamond pattern using stars.

Repeated Coding Questions (TCS / Infosys / Accenture / Wipro)

 Reverse a string without using built-in functions.

 Check if a string is a palindrome.

 Find the frequency of characters in a string.

 Remove vowels from a string.

 Find the first non-repeating character in a string.

 Check if two strings are anagrams , panagram.

Array/List-Based

 Find the largest and smallest element in an array.

 Find the second largest element in an array.

 Remove duplicates from an array.

 Rotate an array by k positions.

 Find the missing number in a sequence.


NUMBERS PROBLEMS:

 Check if a number is an Armstrong number.

 Check if a number is a Perfect number.

 Find GCD and LCM of two numbers.

 Print all prime numbers in a range.

 Convert decimal to binary without using bin().

You might also like