Home > Python > Quizzes > Python commands
Python commands
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 35% Most missed: “appends to a list”
Python commands
Time left 00:00
25 Questions

1. import the turtle module

2. joins items of a list together

3. returns false if the string contains non-letter answers

4. Boolean: true and false

5. Boolean: true or false

6. 2 times 3

7. replaces first character with the second in a string

8. item at index i in list s

9. >>> for word in ['red', 'blue', 'red', 'green', 'blue', 'blue']: ... cnt[word] += 1 | >>> cnt | Counter({'blue': 3, 'red': 2, 'green': 1})

10. make item x a float

11. requests the user 'Enter your age: '

12. takes any number of arguments and returns the smallest one

13. start up turtle to draw something with turtle 'shelly'

14. gives the numerical length of a given string

15. removes an item from an index, does not return anything

16. returns everything from position x to position

17. returns the absolute value (the distance away from 0)

18. removes a number from a particular index, returns that number

19. return the last item in list s

20. quotient of 14 divided by 3

21. prompts user

22. 2 to the power of 3

23. deletes a key and value from a dictionary

24. move to coordinate (x,y) with turtle 'shelly'

25. retrieves current date and time