YouTube2Text

Dynamic Typing in python | why everyone is learning python | Thinkcloudly — Transcript

by thinkcloudly · 685 words · 127 segments · language en · Watch on YouTube

Full transcript

  1. 0:00[music]
  2. 0:07>> Let's continue.
  3. 0:08What is a dynamically typed language?
  4. 0:11First, let's understand what is
  5. 0:13statically typed language is.
  6. 0:17In a statically typed language like
  7. 0:20Java, C++, or C#.
  8. 0:23We specify the type when we create a
  9. 0:26variable.
  10. 0:28If you notice here,
  11. 0:30int age equals to 24.
  12. 0:32We need to mention here
  13. 0:34what type of data this age variable is
  14. 0:37going to store. So, 24 is integer type.
  15. 0:40So, that's why we have to mention here
  16. 0:42int.
  17. 0:43Same.
  18. 0:44Delhi
  19. 0:45is a string type of data.
  20. 0:47So, the city variable is going to store
  21. 0:50Delhi, which is of a string type. And
  22. 0:52that you have to mention.
  23. 0:54So,
  24. 0:55but in Python,
  25. 0:57you do not need to specify anything.
  26. 1:01In Python, you do not need to specify
  27. 1:05anything.
  28. 1:06Directly
  29. 1:07create the variable, store the data.
  30. 1:10Done.
  31. 1:11Then, how memory management happens?
  32. 1:13Because integer take different type of
  33. 1:16memory to store.
  34. 1:17String take different type of memory,
  35. 1:19different size of memory to store.
  36. 1:21So, Python says, "User, you just create
  37. 1:25a variable, store the data. Rest
  38. 1:27everything, user, I will take care. How
  39. 1:30much data, how much size is required, I
  40. 1:33will take care.
  41. 1:35When to create, when to destroy, I will.
  42. 1:38You just store the data into it."
  43. 1:42So, very simply,
  44. 1:44Python is dynamically means
  45. 1:46at the time of run,
  46. 1:49the memory will get allocated in Python.
  47. 1:53Okay?
  48. 1:54Next, data types.
  49. 1:57So, here if you see, first question
  50. 1:59arises, what is a data type?
  51. 2:02Before that, we have to understand what
  52. 2:04is data.
  53. 2:06Data is like, you say,
  54. 2:08someone's information.
  55. 2:10For example, someone's name, age,
  56. 2:12address,
  57. 2:13everything is data, right?
  58. 2:15So, here if you see, we are storing 100
  59. 2:18into a variable.
  60. 2:20What kind of data it is?
  61. 2:22How to get the data type of data?
  62. 2:25I am saying that 100 is an integer. What
  63. 2:27is a proof
  64. 2:28that it is an integer?
  65. 2:30Let's see that proof.
  66. 2:32I will just move on to my VS code.
  67. 2:35So, let's move on
  68. 2:37here to my VS.
  69. 2:43Now,
  70. 2:45let's say,
  71. 2:46I am taking one variable, data.
  72. 2:49Same as slide. I'm storing 100.
  73. 2:53If I'm going to print this data,
  74. 2:54obviously, it will print me 100.
  75. 2:57The question is same.
  76. 2:59How do I trust it is integer?
  77. 3:01Simple.
  78. 3:03How we find it out the memory location
  79. 3:06address using ID function? So, to get
  80. 3:09the type of the data in Python, we have
  81. 3:12a function that is type. T Y P E, type
  82. 3:17function.
  83. 3:18Here if you see, integer.
  84. 3:21This is integer.
  85. 3:22The proof is that 100 is integer.
  86. 3:26Similarly,
  87. 3:27I have another data, let's say, John.
  88. 3:30Obviously, John is a string. So, if I am
  89. 3:34going to print this John,
  90. 3:36type of John is going to be STR, that
  91. 3:40will be string. So, I can give here
  92. 3:43data.
  93. 3:45Okay, let's run it.
  94. 3:47So, it should be string.
  95. 3:49Let's do one thing. I will just declare,
  96. 3:53I will change the value of this data.
  97. 3:55So, you see now I'm giving 3.14. It is
  98. 3:58float, agree? So, it should show float
  99. 4:01now. So, you see some of the data types
  100. 4:04I showed you how to get the data type in
  101. 4:07Python. You can get the data type in
  102. 4:09Python of a data using type function.
  103. 4:14So, here now if you go back we are
  104. 4:16looking on integer data, string data,
  105. 4:19and anything. So, these are some of the
  106. 4:21commons data types available in Python.
  107. 4:24Integer, strings, float, bool means true
  108. 4:26or false. List we have that is ordered
  109. 4:29collection. Apart from it, we have
  110. 4:31tuple, sets, dictionary, everything is
  111. 4:34available in Python.
  112. 4:37All do have separate separate uh
  113. 4:39varieties. All do have separate separate
  114. 4:41you say functionalities and importance
  115. 4:43to utilize. Let
  116. 4:46Hey. If you found this video helpful,
  117. 4:49make sure to share it with a friend who
  118. 4:51is also looking to build a career in IT.
  119. 4:53You can even earn dollar 100 when your
  120. 4:56referral joins us.
  121. 4:59And if you're serious about getting a
  122. 5:00job in IT, check out our job seeker
  123. 5:03program and take the next step towards
  124. 5:05your career.
  125. 5:06Don't forget to like, share, and
  126. 5:08subscribe for more career-focused
  127. 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.