Python File Handling and Modules Quiz

Put Python's standard library to work. Import modules, use math, random, datetime and collections, and read and write files safely.

Intermediate 5 quizzes · 50 questions about 30 minutes
0/5passed Category exam 20 mixed questions. 80% earns a certificate.
Tags:
1 Modules & Imports Easy Check how import, from ... import and aliases work in Python. #modules#imports 10 questions · ~5 min Not started Start
2 math & random Easy Rounding, powers and square roots with math, and what the random functions can return. #math#random#standard-library 10 questions · ~5 min Not started Start
3 File Reading & Writing Medium Open, write, append and read text files with the with statement and the right mode. #files#with-statement 10 questions · ~6 min Not started Start
4 datetime Medium Build, format, parse and do arithmetic with dates and times using the datetime module. #datetime#standard-library 10 questions · ~6 min Not started Start
5 collections Hard Use Counter, defaultdict, deque and namedtuple, and know their surprising behaviours. #collections#standard-library 10 questions · ~8 min Not started Start