Update ) Python for IT
Automation | Test Guide Questions
and Answers | 100% Correct |
Grade A - WGU
Question:
updating a tuple
Answer:
involved converting it to a list, updating the list, then converting it back to a
tuple.
Question:
list are
tuples are
Answer:
mutable
immutable
,Question:
key value mappion
Answer:
dictionaries allow you to associate values with descriptive keys, providing a
convenient way to represent relationships between data.
Question:
Fast Retrieval
Answer:
dictionaries’ have fast and efficient retrieval
Question:
dictionaires
Answer:
deal when you need to organize data in a way that facilitates efficient and
expressive access
,Question:
{}
Answer:
creates dictionairy
and also add :
Question:
dict ()
Answer:
creates an empty dictionarie
Question:
del dictionairy
pop ()
Answer:
remove an item in dictionariy
, Question:
update ()
Answer:
used to update a dictionary with key value pairs from another dictionary
Question:
clear ()
Answer:
clears dictionary
Question:
Python set
Answer:
a built-in data type that holds an unordered collection of unique items
The purpose of a set is to perform operations like the mathematical set
operations. Sets are used when the existence of an object in a collection is
more important than the order or how many times it occurs