Intermediate Quiz 1
1. What does the "append()" method do to a list?
2. Which keyword is used to handle exceptions in Python?
3. How do you get the number of key-value pairs in a dictionary d?
4. What is the output of print(type(3.0))?
5. Which method removes and returns the last item of a list?
6. How do you check if a string s contains "cat"?
7. What is the result of 7 // 2 in Python?
8. How do you read all lines from a file object f?
9. Which function converts a value to a float?
10. What is the result of bool("") in Python?
Previous Next