Given the first and last names of all employees in your firm, what data type will you use to store it?
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 |
Where do we use python scripting?
Explain accessor and mutator methods in python?
What is none python?
What are the optional statements that can be used inside a <try-except> block in python?
Explain how Python is an interpreted language
What is the best code you can write to swap two numbers?
How do you sort a list in ascending order in python?
What is a python module?
What is use of set in python?
How to call an external command in python?
What are the built-in type does python provides?
How can I read inputs as integers/float?