YoVDO

How to Use Type Annotations in Python

Offered By: James Briggs via YouTube

Tags

Python Courses Type Annotations Courses

Course Description

Overview

Learn how to effectively use type annotations in Python to enhance code readability and maintainability. Explore the evolution of type annotations from Python 3's initial implementation to current best practices. Discover the benefits of optional type declarations, including improved code clarity for both personal and collaborative projects. Dive into practical examples demonstrating simple and complex type annotations, IDE warnings, and the use of dict, Union, and Optional operators across different Python versions. Gain insights into the differences between statically and dynamically typed languages, and understand how Python's approach to type annotations offers flexibility without compromising functionality.

Syllabus

Intro
Datatypes Example in C
Static and Dynamic Typed Languages
Type Annotations in Python
How to Define Simple Types
IDE Warnings
More Complex Types
dict[str, int]
Union Operator Py 3.9
Union Operator Py 3.10
Optional Operator


Taught by

James Briggs

Related Courses

Design Computing: 3D Modeling in Rhinoceros with Python/Rhinoscript
University of Michigan via Coursera
A Practical Introduction to Test-Driven Development
LearnQuest via Coursera
FinTech for Finance and Business Leaders
ACCA via edX
Access Bioinformatics Databases with Biopython
Coursera Project Network via Coursera
Accounting Data Analytics
University of Illinois at Urbana-Champaign via Coursera