Understanding Python: Basic Data Types

preview_player
Показать описание
In this video, I go over the basic data types every python programmer must know. The source code for this lesson will be linked below.
As always, if you have any questions or suggestions for future videos, feel free to leave a comment and I will do my best to answer.

Рекомендации по теме
Комментарии
Автор

Hey Jake its Anthony from Galvanize. Really enjoying your videos so far. Thanks for sending them my way!

anthonyengland-rqxc
Автор

Your videos have inspired me to work on learning Python. They are very easy to follow and I appreciate you doing them! Please continue making them. They have helped me so much!

dragonkat
Автор

Love your voice ☺️ Thanks for great videos!

eirinlandsem
Автор

I wonder if folks noticed an interesting tidbit from your d_simple example:

Python 3.8.1 (default, Jan 8 2020, 16:15:59)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> d_simple = {1: 2, "3": 2, True: False}
>>> d_simple
{1: False, '3': 2}

As you can see, d_simple was defined as a dictionary with THREE key-value pairs, but the output shows only TWO key-value pairs :) This is related to how the 1 and True keys are actually one and the same for the Python interpreter, and you end up with the True: False pair "overwriting" the initial 1: 2 pair. Dan Bader does a really good job of explaining this in his book.

OgMaciel
Автор

Just to highlight: @16:15 d_simple - the key True overwrote the key 1 (who's value was 2) with it's value of False

crescent
join shbcf.ru