Python: A Dynamically Typed Language? | Learn Python | Python Tutorials

Опубликовано: 21 Июнь 2018
на канале: The Perfect Tutorials
270
6

Know what makes a programming language dynamically typed and why Python is a dynamically typed language.

-----------------------------------------------------------------------------------------------------------
What is a dynamically-typed programming language? Is Python dynamically-typed or statically typed?
-----------------------------------------------------------------------------------------------------------
In few programming languages, the syntax for declaring a variable goes like:

------------------------------
int x = 50;
char test = "hello"
------------------------------
Whenever there is a mention of the data-type while declaring a variable, it means that the compiler requires to be informed about the data-type of the corresponding variable (before compilation) to initialize it.
This is the way statically-typed programming languages work.
Examples: C, C++, Java

But when the variable declarations look like these:
------------------------------
x = 50;
test = "hello"
------------------------------
They indicate nothing but the underlying dynamically-typed language.
The compiler is not required to be intimated about the data type of the variable because it looks into this aspect at run-time.
Examples: Python, JavaScript, PHP, RUBY

Download the latest python release here: https://www.python.org/downloads/

Follow me on Instagram:   / the_perfect_tutorials  


На этой странице сайта вы можете посмотреть видео онлайн Python: A Dynamically Typed Language? | Learn Python | Python Tutorials длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь The Perfect Tutorials 21 Июнь 2018, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 270 раз и оно понравилось 6 зрителям. Приятного просмотра!