Python Quiz

161. What is the output of: print(bool('Python'))?
162. Which keyword is used to define a new Python module?
163. How do you access the last item of a list named `mylist`?
164. What is the output of: print(9 // 2)?
165. Which of these is a valid variable name in Python?
166. Which method converts all characters of a string to uppercase?
167. What will `type([])` return?
168. Which of these will result in a syntax error?
169. What is the result of `len(' ')` (a string with one space)?
170. How do you round 4.678 to 2 decimal places?

Explore Programming Topics