Dynamic Typing in python | why everyone is learning python | Thinkcloudly — Transcript
Full transcript
- 0:00[music]
- 0:07>> Let's continue.
- 0:08What is a dynamically typed language?
- 0:11First, let's understand what is
- 0:13statically typed language is.
- 0:17In a statically typed language like
- 0:20Java, C++, or C#.
- 0:23We specify the type when we create a
- 0:26variable.
- 0:28If you notice here,
- 0:30int age equals to 24.
- 0:32We need to mention here
- 0:34what type of data this age variable is
- 0:37going to store. So, 24 is integer type.
- 0:40So, that's why we have to mention here
- 0:42int.
- 0:43Same.
- 0:44Delhi
- 0:45is a string type of data.
- 0:47So, the city variable is going to store
- 0:50Delhi, which is of a string type. And
- 0:52that you have to mention.
- 0:54So,
- 0:55but in Python,
- 0:57you do not need to specify anything.
- 1:01In Python, you do not need to specify
- 1:05anything.
- 1:06Directly
- 1:07create the variable, store the data.
- 1:10Done.
- 1:11Then, how memory management happens?
- 1:13Because integer take different type of
- 1:16memory to store.
- 1:17String take different type of memory,
- 1:19different size of memory to store.
- 1:21So, Python says, "User, you just create
- 1:25a variable, store the data. Rest
- 1:27everything, user, I will take care. How
- 1:30much data, how much size is required, I
- 1:33will take care.
- 1:35When to create, when to destroy, I will.
- 1:38You just store the data into it."
- 1:42So, very simply,
- 1:44Python is dynamically means
- 1:46at the time of run,
- 1:49the memory will get allocated in Python.
- 1:53Okay?
- 1:54Next, data types.
- 1:57So, here if you see, first question
- 1:59arises, what is a data type?
- 2:02Before that, we have to understand what
- 2:04is data.
- 2:06Data is like, you say,
- 2:08someone's information.
- 2:10For example, someone's name, age,
- 2:12address,
- 2:13everything is data, right?
- 2:15So, here if you see, we are storing 100
- 2:18into a variable.
- 2:20What kind of data it is?
- 2:22How to get the data type of data?
- 2:25I am saying that 100 is an integer. What
- 2:27is a proof
- 2:28that it is an integer?
- 2:30Let's see that proof.
- 2:32I will just move on to my VS code.
- 2:35So, let's move on
- 2:37here to my VS.
- 2:43Now,
- 2:45let's say,
- 2:46I am taking one variable, data.
- 2:49Same as slide. I'm storing 100.
- 2:53If I'm going to print this data,
- 2:54obviously, it will print me 100.
- 2:57The question is same.
- 2:59How do I trust it is integer?
- 3:01Simple.
- 3:03How we find it out the memory location
- 3:06address using ID function? So, to get
- 3:09the type of the data in Python, we have
- 3:12a function that is type. T Y P E, type
- 3:17function.
- 3:18Here if you see, integer.
- 3:21This is integer.
- 3:22The proof is that 100 is integer.
- 3:26Similarly,
- 3:27I have another data, let's say, John.
- 3:30Obviously, John is a string. So, if I am
- 3:34going to print this John,
- 3:36type of John is going to be STR, that
- 3:40will be string. So, I can give here
- 3:43data.
- 3:45Okay, let's run it.
- 3:47So, it should be string.
- 3:49Let's do one thing. I will just declare,
- 3:53I will change the value of this data.
- 3:55So, you see now I'm giving 3.14. It is
- 3:58float, agree? So, it should show float
- 4:01now. So, you see some of the data types
- 4:04I showed you how to get the data type in
- 4:07Python. You can get the data type in
- 4:09Python of a data using type function.
- 4:14So, here now if you go back we are
- 4:16looking on integer data, string data,
- 4:19and anything. So, these are some of the
- 4:21commons data types available in Python.
- 4:24Integer, strings, float, bool means true
- 4:26or false. List we have that is ordered
- 4:29collection. Apart from it, we have
- 4:31tuple, sets, dictionary, everything is
- 4:34available in Python.
- 4:37All do have separate separate uh
- 4:39varieties. All do have separate separate
- 4:41you say functionalities and importance
- 4:43to utilize. Let
- 4:46Hey. If you found this video helpful,
- 4:49make sure to share it with a friend who
- 4:51is also looking to build a career in IT.
- 4:53You can even earn dollar 100 when your
- 4:56referral joins us.
- 4:59And if you're serious about getting a
- 5:00job in IT, check out our job seeker
- 5:03program and take the next step towards
- 5:05your career.
- 5:06Don't forget to like, share, and
- 5:08subscribe for more career-focused
- 5:10content.
About this transcript
This page contains the full transcript of Dynamic Typing in python | why everyone is learning python | Thinkcloudly by thinkcloudly, generated from the public captions YouTube serves with the video. The transcript has 685 words across 127 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.