filmov
tv
How to get the data type in Python? #shorts

Показать описание
In Python, if you don't know what data type you're working with, using the type() function will reveal the mystery.
Example:
a = ["bmw", "mercedes", "ford"] - this is a list
print(type(a)) - this will result in a list
--------------------------Subscribe-----------------------------
• If you like to see a variety of fun and interactive projects written in Python
• If you love ☕ and 🐶 WAIT! - Yeah! Definitely, coffee and dogs!
-----------------------------------------------------------------------
--------------------------Socials-----------------------------
------------------------------------------------------------------
--------------------------Support-----------------------------
--------------------------------------------------------------------
How to get the data type in Python? #shorts #python #datatype
Example:
a = ["bmw", "mercedes", "ford"] - this is a list
print(type(a)) - this will result in a list
--------------------------Subscribe-----------------------------
• If you like to see a variety of fun and interactive projects written in Python
• If you love ☕ and 🐶 WAIT! - Yeah! Definitely, coffee and dogs!
-----------------------------------------------------------------------
--------------------------Socials-----------------------------
------------------------------------------------------------------
--------------------------Support-----------------------------
--------------------------------------------------------------------
How to get the data type in Python? #shorts #python #datatype