Intermediate Quiz 4
1. How do you check the type of variable x?
2. How do you start a class definition for a class called Dog?
3. What is the output of print(list("cat"))?
4. How do you make a set from a list a?
5. What does the "continue" statement do in a loop?
6. How do you get all keys from dictionary d?
7. How do you reverse a list a?
8. Which function can be used to get user input as an integer?
9. What is the output of print("a,b,c".split(","))?
10. Which method returns a copy of a list?
Previous Next