Python Introduction and Fundamental Datatypes (JupyterLab IDE)

Channel:
Subscribers:
7,760
Published on ● Video Link: https://www.youtube.com/watch?v=hYQ_IHMYFy0



Duration: 59:54
75 views
1


This video gives an introduction to the Python Programming Language and examines the use of the fundamental datatypes which are used to input text data (str) and numeric data (int, bool and float) respectively. I cover the basics of Python syntax such as variable naming, use of the assignment operator and the concept of referencing a variable or function versus calling a function. This tutorial also uses the JupyterLab IDE and covers basic usage of the IDE such as looking up function docstrings.

The written tutorial for this guide is available on GitHub:
https://github.com/PhilipYip1988/python-tutorials/tree/main/004_python_fundamental_datatypes

This video covers the concept of creating instances for each class, where each instance has associated instance data. I explore the use of class identifiers. Identifiers are normally methods (functions which operate on the instance data) or attributes (instance variables or properties that can be accessed that are essentially nested objects). The str methods are typically configured to operate on text data, while the int methods are typically configured to work on numeric data. I look at the concept of casting an int to a str or vice-versa.

In addition I look at the directory of each class and explore the use of the hidden datamodel identifiers which sadly are typically brushed over in most beginner tutorials. The hidden datamodel identifiers are not typically used directly but are mapped to inbuilt Python functions or operators. That being said it is useful to acknowledge them early on to get a feeling for Pythons syntax and build a fundamental understanding of object-orientated programming which will help later on as you advance in Python proficiency. Understanding datamodel methods early on prevents confusion when it comes to using the + operator. The + operator behaves differently for the str class and int class and is mapped to a differently defined __add__ datamodel method for each class which is setup for concatenation and numeric addition respectively. Datamodel methods are also known as double underscore identifiers or dunder identifiers colloquially.

#Python #jupyterlab #datamodel