
PYTHON PROGRAMMING
Quiz by Dr.M.S.Jeyalakshmi
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
What is the output of the following code?
my_dict = {"name": "Alice", "age": 25} my_dict["age"] = 30 print(my_dict)
Which method is used to get a list of all the keys in a dictionary?
What is the correct way to access a value from a dictionary using a key?
Which of the following is true about tuples in Python?
How do you access the first element of the tuple my_tuple = (10, 20, 30)?
What will be the result of the following code?
Which of the following methods can be used to combine two tuples in Python?
Which of the following is the correct syntax to create a list in Python?
What will be the output of the following code?
Which method is used to sort a list in ascending order?