How can you determine the data type of a variable in Python?
Explain the concept of string indexing and how it helps access individual characters.
How do you create a tuple in Python, and what are some common use cases for tuples?
How do you create a list in Python, and what are some common use cases for lists?
How do you create a set in Python, and what are some common use cases for sets?
How do you create a dictionary in Python, and what are some common use cases for dictionaries?
How do you access elements within a tuple using indexing and slicing?
How do you add, remove, or modify elements within a list?
How do you add, remove, or update elements within a set?
How do you access, add, update, or delete items within a dictionary?
Given x = 10 and y = 3, what is the output of x // y?
What is the result of “Hello” + ” ” + “World”?
If word = “Programming”, what is the output of word[4:8]?
What is the result of (1, 2) * 3?
What does [1, 2, 3][::-1] evaluate to?
Given my_set = {10, 20, 30}, what is the output of 20 in my_set?
If my_dict = {“x”: 5, “y”: 7}, what is the output of my_dict[“x”] * my_dict[“y”]?
If phrase = “Python is easy to learn”, what does phrase.replace(“easy”, “powerful”) produce?
What is the output of (“a”, “b”, “c”).count(“b”)?
Given mixed = [1, “hello”, True], what is the result of mixed[1]?