Given the first and last names of all employees in your firm, what data type will you use to store it?



Given the first and last names of all employees in your firm, what data type will you use to store i..

Answer / Prem Prakash Kumar

"In Python, you can use a list of tuples or a dictionary to store pairs of first and last names. Here's an example using a list of tuples:n```nemployees = [("John", "Doe"), ("Jane", "Smith")]n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

In Python what is slicing?

1 Answers  


Does python has private keyword in python ?

1 Answers  


Explain the difference between a list and the tuple?

1 Answers  


Tell me the use of // operator in python?

1 Answers  


How to run a Python CGI script in Wamp?

1 Answers  


Does python 3.7 come with pip?

1 Answers  


Is python easy to learn if you know c++?

1 Answers  


How many hours does a python sleep?

1 Answers  


What is dogpile effect?

1 Answers  


What is python? What are the benefits of using python? What do you understand of pep 8?

1 Answers  


What program to write python?

1 Answers  


Executing dml commands through python programs?

1 Answers  


Categories