Basic Python Tutorials

This is a series of tutorials on basic Python for those who are new to the programming language (including those who are completely inexperienced with coding). This is a must-see for anyone looking to conquer the path of a Python engineer and a data scientist.

1 How to Setup Python Virtual Environments (venv)

2 Python – How to upgrade Poetry to a new version

3 Working with the pprint.pprint() function in Python (with examples)

4 How to Check Python versions on Mac

5 Python: 2 Ways to Measure the Execution Time of Code

6 Python Linked Lists: Explanation & Examples

7 Working with statistics.fmean() function in Python

8 Python Data Types Cheat Sheet

9 Python: How to Retry After Exception – 3 Effective Ways

10 Python: Defining Functions with Type Hints

11 Python Generic Types: Tutorial & Examples

12 Python virtual environment: 3 Ways to upgrade all packages

13 How to Use Code Runner in Python Virtual Environments

14 Python Generators: Tutorial & Examples

15 Using Poetry to manage Python packages: A practical guide (with examples)

16 Python: How to rename a virtual environment directory

17 Using Type Aliases in Python: A Practical Guide (with Examples)

18 Union Type in Python: The Complete Guide (with Examples)

19 Understanding ‘Any’ type in Python through examples

20 Python: Defining distinct types using NewType class

21 Python typing.Concatenate Examples

22 Python typing.ClassVar examples

23 Using TypeGuard in Python (Python 3.10+)

24 Understanding ‘Never’ type in Python 3.11+ (5 examples)

25 Python: How to access command-line arguments (3 approaches)

26 Python: Using type hints with class methods and properties

27 Python: Using ‘NoReturn’ type with functions

28 Python: Typing a function with default parameters

29 Type Casting in Python: The Ultimate Guide (with Examples)

30 Python: Typing a function that can return multiple types

31 Python: Typing a function with *args and **kwargs

32 Python Type Hint: Annotating ‘Nullable’ and ‘Noneable’ return type

33 Python: Using Type Hints with Enum

34 Understanding variable annotations in Python (through examples)

35 Python: Using Type Hints when Handling Exceptions with Try/Catch

36 Python: Add Type Annotations when Unpacking Tuples

37 Python typing.Annotated examples

38 Using TypeVar in modern Python: A practical guide

39 Recursive Types in Modern Python: A Practical Guide

40 Python: Using dependent types for input/return of function

41 4 ways to install Python modules on Windows without admin rights

42 Python: How to Override Methods in Classes

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments