Python sleep(): How to Add Time Delays to Your Code
Learn how to use Python's sleep() function to add time delays and pause your code with time.sleep(), decorators, threads, and asyncio.
Curated development tutorials from top sources. Filter by language.
Learn how to use Python's sleep() function to add time delays and pause your code with time.sleep(), decorators, threads, and asyncio.
Test your understanding of Python regular expressions: the re module, character classes, anchors, groups, alternation, and flags.
Test your understanding of Python's assert statement. Learn when to use assertions for debugging, testing, and documenting your code.
Have you ever been confused by the naming of modules you're importing from a package? Is there a standard way to organize and name your Python virtual
Test your understanding of BNF notation and how to read Python's grammar rules in the official documentation.
Learn how to send emails with Python using SMTP, attach files, format HTML messages, and personalize bulk emails for your contact list.
Use Python's standard library to send email through secure SMTP connections, attach files, include HTML content, and route replies.
Build an MCP server in Python that exposes tools, resources, and prompts so AI agents like Cursor can interact with your data.
Revisit Python modules, packages, the import system, pip, uv, and READMEs in this wrap-up quiz for the Modules and Packages path.
Test what you've learned in the Exceptions, Logging, and Debugging path. Practice handling errors, raising exceptions, and using logging.
Practice creating statistical plots in Python with seaborn. Compare the classic functional interface with the newer objects interface.
Test your understanding of Python's built-in data structures: strings, lists, tuples, dictionaries, sets, sorting, and bytes in 20 questions.
Test your understanding of Pythonic code: the Zen of Python, PEP 8, code quality, type checking, and documentation in 20 questions.
Test your Python OOP skills with this wrap-up quiz covering classes, inheritance, magic methods, properties, mixins, and SOLID design principles.
Test your skills on Python virtual environments, pyenv version management, and choosing a great programming font for your dev setup.
Test what you learned about Python file handling, pathlib, context managers, and reading or writing WAV files in this learning path wrap-up quiz.
Test your understanding of Python functions and scopes: parameters, arguments, return values, inner functions, namespaces, and the LEGB rule.
Test your understanding of Python I/O and string formatting: input(), print(), stripping methods, the format mini-language, and f-strings.
Test your understanding of Python testing with unittest, pytest, mock, code quality tools, and CI with GitHub Actions in 20 questions.
Test what you know about the Model Context Protocol by reviewing MCP servers, clients, tools, resources, and prompts in Python.