Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by TCS Team. If you also belong to the team, you can get access from here

TCS Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

TCS Python Developer Interview Questions and Answers

Updated 8 Jul 2024

15 Interview questions

A Python Developer was asked 11mo ago
Q. What are tuples in Python?
Ans. 

Tuples in Python are immutable sequences of elements, similar to lists but cannot be changed once created.

  • Tuples are created using parentheses ()

  • Elements in a tuple can be of different data types

  • Tuples are immutable, meaning their elements cannot be changed once created

  • Tuples can be used as keys in dictionaries

A Python Developer was asked 11mo ago
Q. What are dictionary comprehensions?
Ans. 

Dict comprehension is a concise way to create dictionaries in Python using a single line of code.

  • Dict comprehension uses curly braces {} to create a dictionary with key-value pairs.

  • It can include conditions and loops to filter or modify the elements being added to the dictionary.

  • Example: {key: value for key, value in iterable if condition}

Python Developer Interview Questions Asked at Other Companies

asked in Cognizant
Q1. Explain the logic of a program to reverse a given string word by ... read more
asked in Cognizant
Q2. What is the difference between a variable and an object?
asked in TCS
Q3. 1. Difference between tuple and a list? 2. What are decorators? 3 ... read more
Q4. How do you convert a .txt file to a .csv file using Python?
asked in Accenture
Q5. Write a program to print a string in reverse without using built- ... read more
A Python Developer was asked
Q. Explain the data structures available in Python and their differences.
Ans. 

Python has built-in data structures like lists, tuples, sets, and dictionaries.

  • Lists are mutable and ordered, used for storing multiple items.

  • Tuples are immutable and ordered, used for storing multiple items.

  • Sets are mutable and unordered, used for storing unique values.

  • Dictionaries are mutable and unordered, used for storing key-value pairs.

A Python Developer was asked
Q. Explain decorators.
Ans. 

Decorators are functions that modify the behavior of other functions without changing their source code.

  • Decorators are denoted by '@' symbol in Python

  • They can be used to add functionality to existing functions

  • They can be used to modify the behavior of existing functions

  • They can be used to restrict access to certain functions

  • Examples include @staticmethod, @classmethod, @property

What people are saying about TCS

View All
a senior associate
2w
Tata's lost its touch? TCS ain't what it used to be :-(
Tata is not the same after Sir Ratan Tata! TCS used to really look after its employees, even when they were on the bench. Now, things have changed and it's disappointing.
FeedCard Image
Got a question about TCS?
Ask anonymously on communities.
A Python Developer was asked
Q. Explain generators and provide an example.
Ans. 

Generators are functions that can be paused and resumed, returning a sequence of values.

  • Generators use the yield keyword to return values one at a time

  • They are memory efficient as they don't store the entire sequence in memory

  • They can be used to generate an infinite sequence of values

  • Example: def countdown(n): while n > 0: yield n n -= 1

  • Example: squares = (x*x for x in range(10))

A Python Developer was asked
Q. What are the new features added in the latest version of Python?
Ans. 

Python 3.10 added new features like structural pattern matching, improved error messages, and more.

  • Structural pattern matching allows for more concise and readable code

  • Improved error messages make debugging easier

  • New syntax for specifying precise types

  • Performance improvements in various areas

  • New modules and libraries added

  • Examples: match case, improved error messages, improved typing syntax

A Python Developer was asked
Q. How much do you know about Python?
Ans. 

I have a strong understanding of Python and its various libraries and frameworks.

  • Proficient in Python syntax and data structures

  • Experience with popular Python libraries such as NumPy, Pandas, and Matplotlib

  • Familiarity with web frameworks like Django and Flask

  • Knowledge of Python's object-oriented programming features

  • Experience with Python's built-in testing framework, unittest

  • Understanding of Python's concurrency a...

Are these interview questions helpful?
A Python Developer was asked
Q. What is a suite in Python?
Ans. 

A suite in Python is a group of statements that are executed together as a single block.

  • Suites are used in control structures like if, while, for, etc.

  • Suites are defined by their indentation level.

  • Suites can contain one or more statements.

  • Suites can also be empty.

🔥 Asked by recruiter 2 times
A Python Developer was asked
Q. What are the differences between a tuple and a list?
Ans. 

Tuple is immutable and ordered while list is mutable and ordered.

  • Tuple uses () while list uses []

  • Tuple cannot be modified while list can be modified

  • Tuple is faster than list for accessing elements

  • Tuple is used for fixed data while list is used for dynamic data

A Python Developer was asked
Q. How should I prepare for the interview?
Ans. 

Prepare for a Python developer interview by mastering key concepts, practicing coding, and understanding the company’s tech stack.

  • Review Python fundamentals: Understand data types, control structures, and functions.

  • Practice coding problems on platforms like LeetCode or HackerRank to improve problem-solving skills.

  • Familiarize yourself with popular libraries and frameworks such as Flask, Django, or Pandas.

  • Understand...

TCS Python Developer Interview Experiences

28 interviews found

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. What are tuples in python?
  • Ans. 

    Tuples in Python are immutable sequences of elements, similar to lists but cannot be changed once created.

    • Tuples are created using parentheses ()

    • Elements in a tuple can be of different data types

    • Tuples are immutable, meaning their elements cannot be changed once created

    • Tuples can be used as keys in dictionaries

  • Answered by AI
  • Q2. What are dict comprehension
  • Ans. 

    Dict comprehension is a concise way to create dictionaries in Python using a single line of code.

    • Dict comprehension uses curly braces {} to create a dictionary with key-value pairs.

    • It can include conditions and loops to filter or modify the elements being added to the dictionary.

    • Example: {key: value for key, value in iterable if condition}

  • Answered by AI

Skills evaluated in this interview

Interview experience
1
Bad
Difficulty level
-
Process Duration
-
Result
Selected Selected
Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Do not use an unprofessional email address such as cool_boy@email.com. It shows a lack of professionalism by the candidate.
View all tips
Round 2 - Assignment 

Python is the best language . basically python web development was rounded off this matter and without permission was carried functional and without permission.

Round 3 - Technical 

(5 Questions)

  • Q1. Technical issue wasn't
  • Ans. Python web development was rounded up day before that I was carried out by the day.
  • Answered Anonymously
  • Q2. Python web designing your page quality off your matter to this message.
  • Ans. 

    The question is unclear and does not make sense.

    • The question is not a valid question.

    • It does not relate to Python web designing or any other topic.

    • It is not possible to provide a meaningful answer to this question.

  • Answered by AI
  • Q3. Web development you too have ever seen page in python web development quality information.
  • Q4. Managing power of too much of you and without permission development was rounded.
  • Q5. Power off web development was rounded up to your console app information about me too this message.

Interview Preparation Tips

Interview preparation tips for other job seekers - Web development and marketing work in the day both are matter point this message was carried out of range of you too development was very good
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via LinkedIn and was interviewed in Mar 2023. There were 3 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Be truthful in your resume. It is very easy to catch false or lies during the interview by asking basic questions.
View all tips
Round 2 - Technical 

(3 Questions)

  • Q1. Explain the data structures available in python and their differences
  • Ans. 

    Python has built-in data structures like lists, tuples, sets, and dictionaries.

    • Lists are mutable and ordered, used for storing multiple items.

    • Tuples are immutable and ordered, used for storing multiple items.

    • Sets are mutable and unordered, used for storing unique values.

    • Dictionaries are mutable and unordered, used for storing key-value pairs.

  • Answered by AI
  • Q2. Explain generators and give an example
  • Ans. 

    Generators are functions that can be paused and resumed, returning a sequence of values.

    • Generators use the yield keyword to return values one at a time

    • They are memory efficient as they don't store the entire sequence in memory

    • They can be used to generate an infinite sequence of values

    • Example: def countdown(n): while n > 0: yield n n -= 1

    • Example: squares = (x*x for x in range(10))

  • Answered by AI
  • Q3. Explain about decorators
  • Ans. 

    Decorators are functions that modify the behavior of other functions without changing their source code.

    • Decorators are denoted by '@' symbol in Python

    • They can be used to add functionality to existing functions

    • They can be used to modify the behavior of existing functions

    • They can be used to restrict access to certain functions

    • Examples include @staticmethod, @classmethod, @property

  • Answered by AI
Round 3 - Behavioral 

(1 Question)

  • Q1. Agile Scrum, and one coding question

Interview Preparation Tips

Interview preparation tips for other job seekers - Learn the basics of python and practise different managerial questions online

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via LinkedIn and was interviewed in Mar 2023. There were 3 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Be honest with your years of experience. All information you share will be verified at the time of joining.
View all tips
Round 2 - Technical 

(2 Questions)

  • Q1. Data structures, similarities and differences between them
  • Ans. 

    Data structures are ways of organizing and storing data in a computer so that it can be accessed and used efficiently.

    • Arrays - a collection of elements of the same data type

    • Linked Lists - a collection of nodes that contain data and a reference to the next node

    • Stacks - a collection of elements that follows the Last In First Out (LIFO) principle

    • Queues - a collection of elements that follows the First In First Out (FIFO) ...

  • Answered by AI
  • Q2. Generators, decorators, OOPs concepts, List and dictionary comprehension
Round 3 - Behavioral 

(1 Question)

  • Q1. Agile, Scrum, JIRA, Different situations you find yourself in, coding question

Interview Preparation Tips

Interview preparation tips for other job seekers - Learn basics of python and practise a few Managerial questions online

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Aptitude Test 

Aptitude test was of 1 hour

Round 2 - Coding Test 

Coding test was of 1 hour

Interview Preparation Tips

Interview preparation tips for other job seekers - None
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Company Website and was interviewed in Jul 2023. There were 4 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Avoid using too much corporate jargon in your CV. Sometimes keeping things simple will get your job done.
View all tips
Round 2 - Group Discussion 

General duty of all software engineer is to. have patience,balanced diet,sound sleep, and self motivation because when you are in tension of what you are not getting your become frustrated and bust on your well wishers which hurt them which your don't know that's why self motivation is required every moment of your life ,be happy in all situations.

Round 3 - Group Discussion 

Got more knowledge with others

Round 4 - Aptitude Test 

Study all codings reralared ti computers

Interview Preparation Tips

Interview preparation tips for other job seekers - Want to join in tcs
Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
-

I applied via Naukri.com and was interviewed in Jan 2023. There were 2 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Properly align and format text in your resume. A recruiter will have to spend more time reading poorly aligned text, leading to high chances of rejection.
View all tips
Round 2 - Technical 

(2 Questions)

  • Q1. What are the new features added in latest version of python
  • Q2. Basic level of questions, concepts in python, asked a program to write and explain about it.

Interview Preparation Tips

Interview preparation tips for other job seekers - Strong knowledge on basics in any programming language you are applying for is an advantage.

Skills evaluated in this interview

I applied via Company Website and was interviewed in Jan 2023. There were 2 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Technical 

(2 Questions)

  • Q1. Opps concepts, list tuple difference, how to update dictionary,
  • Ans. 

    Questions on OOPs concepts, differences between list and tuple, and updating a dictionary.

    • OOPs concepts include inheritance, polymorphism, encapsulation, and abstraction.

    • Lists are mutable while tuples are immutable.

    • To update a dictionary, use the key to access the value and assign a new value to it.

    • Example: my_dict = {'name': 'John', 'age': 25}; my_dict['age'] = 26

  • Answered by AI
  • Q2. List comprehension if else try and catch

Interview Preparation Tips

Interview preparation tips for other job seekers - opps concepts,
list and tuple difference
try and catch

Python Developer Interview Questions & Answers

user image Aravind Merugu

posted on 8 Mar 2023

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Naukri.com and was interviewed in Sep 2022. There were 3 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Double-check your resume for any spelling mistakes. The recruiter may consider spelling mistakes as careless behavior or poor communication skills.
View all tips
Round 2 - Technical 

(1 Question)

  • Q1. 1. Difference between tuple and a list? 2. What are decorators? 3. What is 'to' object? 4. Program to illustrate the difference between pass, break, continue? 5. Find the error in the given program? 6. Exp...
  • Ans. 

    Answers to interview questions for a Python developer.

    • 1. Tuples are immutable while lists are mutable.

    • 2. Decorators are functions that modify the behavior of other functions.

    • 3. 'to' object is not a standard term in Python, so it's unclear.

    • 4. Pass does nothing, break exits the loop, and continue skips to the next iteration.

    • 5. Need the given program to identify the error.

    • 6. Explain your projects in detail, highlighting y...

  • Answered by AI
Round 3 - HR 

(1 Question)

  • Q1. 1. Why TCS? 2. Are you flexible to work around shifts? 3. Why are you leaving your current organization?

Interview Preparation Tips

Interview preparation tips for other job seekers - Keep your profile genuine, you are going to get questions based on that.

I applied via Company Website and was interviewed in Nov 2022. There were 5 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Don’t add your photo or details such as gender, age, and address in your resume. These details do not add any value.
View all tips
Round 2 - Aptitude Test 

An exam to determine the skills for job

Round 3 - Assignment 

Assignment that given task to a person

Round 4 - HR 

(1 Question)

  • Q1. It is based on own knowledge to show our skills to HR
Round 5 - One-on-one 

(1 Question)

  • Q1. It is asked questions in resume

Interview Preparation Tips

Interview preparation tips for other job seekers - Ready to learn new things and try to improve our knowledge.Based on your knowledge companies recruit you.

TCS Interview FAQs

How many rounds are there in TCS Python Developer interview?
TCS interview process usually has 2-3 rounds. The most common rounds in the TCS interview process are Resume Shortlist, Aptitude Test and Technical.
How to prepare for TCS Python Developer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at TCS. The most common topics and skills that interviewers at TCS expect are Python, Django, Flask, AWS and SQL.
What are the top questions asked in TCS Python Developer interview?

Some of the top questions asked at the TCS Python Developer interview -

  1. 1. Difference between tuple and a list? 2. What are decorators? 3. What is 'to'...read more
  2. What are the new features added in latest version of pyt...read more
  3. What is linked list, what is array, multidimensional array, nested for loop, po...read more
How long is the TCS Python Developer interview process?

The duration of TCS Python Developer interview process can vary, but typically it takes about less than 2 weeks to complete.

Tell us how to improve this page.

Overall Interview Experience Rating

4.1/5

based on 12 interview experiences

Difficulty level

Easy 13%
Moderate 75%
Hard 13%

Duration

Less than 2 weeks 100%
View more
TCS Python Developer Salary
based on 1.2k salaries
₹2 L/yr - ₹10 L/yr
At par with the average Python Developer Salary in India
View more details

TCS Python Developer Reviews and Ratings

based on 97 reviews

3.8/5

Rating in categories

3.6

Skill development

4.2

Work-life balance

2.8

Salary

4.7

Job security

3.7

Company culture

2.5

Promotions

3.5

Work satisfaction

Explore 97 Reviews and Ratings
System Engineer
1.1L salaries
unlock blur

₹1 L/yr - ₹9 L/yr

IT Analyst
65.6k salaries
unlock blur

₹5.1 L/yr - ₹16.8 L/yr

AST Consultant
53.4k salaries
unlock blur

₹8 L/yr - ₹25 L/yr

Assistant System Engineer
33.2k salaries
unlock blur

₹2.6 L/yr - ₹6.4 L/yr

Associate Consultant
32.8k salaries
unlock blur

₹9 L/yr - ₹33.6 L/yr

Explore more salaries
Compare TCS with

Amazon

4.0
Compare

Wipro

3.7
Compare

Infosys

3.6
Compare

Accenture

3.8
Compare
write
Share an Interview