Skip to playerSkip to main contentSkip to footer
  • 5/23/2025
Python's popularity stems from its readability, versatility, and extensive library support, making it an ideal choice for various programming tasks, from web development to data science. Its beginner-friendly nature and open-source availability further contribute to its widespread adoption.

Category

📚
Learning
Transcript
00:00I have a little lecture for a good developer, and I have asked what quality is a good developer.
00:06We discussed that a good developer has a clean code, a bug-free code.
00:12In this lecture, I will expand the concept of this concept,
00:17because we talked about functions.
00:19I will give you a definition of an ideal function.
00:24Basically, I was learning as an experienced developer.
00:29We had a concept that exists,
00:36and then we define a perfect function.
00:43Then we follow the best code.
00:48However, if you have mechanics,
00:53you will know that a machine exists not,
00:55which has a efficiency of 100 percent.
00:57You will know that a machine exists not,
00:59or that a perpetual motion machine says,
01:01that it exists not,
01:03which has zero energy and works.
01:05Here, zero watts can be zero energy.
01:07So, you have to follow this definition,
01:11that we have an idealistic function.
01:13So, first of all,
01:15we will see what idealistic function is.
01:17Imagine that you have a function.
01:20Let's say,
01:21let's say,
01:22I will add a box.
01:23Okay?
01:24And this box is some code.
01:26Okay?
01:27However,
01:28this box is some input.
01:30And again,
01:32this is some output.
01:33This is a output.
01:34In,
01:35and out.
01:37Now,
01:38this is a function.
01:39Now,
01:40this is a function.
01:41If I say,
01:43let's say,
01:44an idealistic function is.
01:46So,
01:47this is an idealistic function.
01:48There are two properties.
01:50The first property is
01:53that this is
01:54always the same output
01:56to the same output.
01:57Irrespective of the run.
01:59If you have one million times
02:02to the same output
02:04to the same output
02:05to the same output.
02:06that is the same result.
02:07So,
02:08this is the same result.
02:09This is the same result.
02:10This is the same result.
02:11So,
02:12if you have one,
02:13you should say,
02:14one,
02:15one,
02:16I will enter.
02:17And,
02:18if you have one,
02:19the function,
02:20one,
02:21one,
02:22one,
02:23one,
02:24two,
02:25or two,
02:26one,
02:27one,
02:28two,
02:29one.
02:30If you have one million times,
02:31one,
02:32one,
02:33one,
02:34two,
02:35one add
02:35کر کے
02:35آپ کو
02:36ہمیشہ
02:36return
02:36کرے گا
02:37ایک
02:38چیز
02:38دوسری
02:39ایک
02:40ideal
02:40function
02:41کی
02:41خاصیت
02:41یہ ہے
02:42کہ
02:42اس کے
02:43side
02:43effects
02:43نہیں
02:44ہونے
02:44چاہیے
02:44side
02:45effects
02:45side
02:46effect
02:46کیا
02:46چیز
02:46ہے
02:46side
02:47effect
02:47میں
02:47آتا
02:47ہے
02:47for
02:48example
02:48یہ
02:49کسی
02:50ایسے
02:51variable
02:51کو
02:52access
02:52نہ
02:52کر
02:52رہا
02:53ہو
02:53جس
02:53کا
02:53آپ
02:53کو
02:53idea
02:54نہ
02:54ہو
02:54یا
02:55پھر
02:55وہ
02:55آپ
02:55کے
02:55function
02:56کے
02:56scope
02:56سے
02:56باہر
02:57ہو
02:57مثال
02:58کے
02:58طور
02:59پہ
02:59آپ
02:59let's
03:01say
03:01ایک
03:01ایسے
03:02variable
03:02کو
03:02access
03:02کر
03:03رہے ہیں
03:03جو
03:03کہ
03:03آپ
03:03کے
03:04function
03:04کے
03:04اندر
03:04موجود
03:05نہیں
03:05ہے
03:05ٹھیک
03:06ہے
03:06اور
03:07that
03:08variable
03:09جو
03:09ہے
03:09further
03:09access
03:10کر
03:10رہے
03:10کسی
03:10اور
03:10variable
03:11کو
03:11تو
03:11side
03:11effect
03:12introduce
03:12کرا
03:12دے
03:12گا
03:13آپ
03:13کے
03:13code
03:13کے
03:13اندر
03:13جو
03:14بگ
03:14لے
03:15کے
03:15آسکتے
03:15ہیں
03:26adder
03:26ایک
03:26function
03:27ہے
03:27جو
03:27کہ
03:27ایک
03:28number
03:28لیتا
03:28ہے
03:29ٹھیک
03:29ہے
03:29اور
03:30simple
03:31let's
03:33say
03:33add
03:35one
03:35ایک
03:36variable
03:36ہے
03:36اور
03:37وہ
03:37کیا
03:37کرتا
03:38ہے
03:38کہ
03:38اس
03:38number
03:38کے
03:39اندر
03:39ایک
03:39add
03:39کر
03:40دیتا
03:40ہے
03:40very
03:40simple
03:41function
03:41اور
03:41میں
03:41اس
03:42کو
03:42return
03:42کرا
03:42دیتا
03:42ہوں
03:43add
03:44underscore
03:44one
03:44کی
03:45value
03:45یعنی
03:46جو
03:46بھی
03:46value
03:46آپ
03:46number
03:47دیں
03:47گے
03:47اس
03:47میں
03:47add
03:56کرتے
03:56ہیں
03:56آپ
03:57کہتے
03:57adder
03:57function
03:58اور
03:58اس
03:58کو
03:59آپ
03:59کو
03:59number
04:00value
04:00دیتے
04:00ہیں
04:00adder
04:01اور
04:02number
04:02let's
04:02say
04:02one
04:03دے
04:03دی
04:03آپ
04:03اب
04:04جو
04:04ہی
04:04اس
04:04کو
04:04execute
04:04کیا
04:05یا
04:06آپ
04:06کو
04:06کو
04:06result
04:06نہیں
04:06دے
04:07رہا
04:07آپ
04:07اس
04:07کو
04:07print
04:07کریں
04:08گے
04:08تو
04:10آپ
04:13نے
04:13اس
04:13کو
04:131
04:13دیا
04:13یہ
04:132
04:14return
04:14کر
04:14دے
04:14گا
04:15very
04:15good
04:15right
04:16اب
04:17آپ
04:18نے
04:18ذرا
04:18غور
04:18کرنا
04:18ہے
04:19first
04:20definition
04:21کہ
04:23always
04:25return
04:26same
04:27output
04:28ٹھیک ہے
04:32تو
04:33اگر
04:33میں
04:34اس
04:35کو
04:35چاہے
04:35جتنی دفعہ
04:36بھی
04:36execute
04:37کروں
04:37it
04:37will
04:37always
04:38return
04:38to
04:39right
04:40ایسا
04:41ہی
04:41ہے
04:41نا
04:41اگر
04:42میں
04:42number
04:42کی
04:42value
04:42change
04:43کر
04:43دیتا
04:43ہوں
04:43again
04:44یہ
04:44value
04:45جو
04:46ہے
04:46وہ
04:47return
04:47کرے
04:47جو
04:48expected
04:48ہے
04:48یعنی
04:49اگر
04:494
04:49دیا
04:49تو
04:495
04:50return
04:50کرے
04:50گا
04:50تو
04:51always
04:52return
04:52expected
04:54output
04:54میں
04:55اس
04:55کو
04:55expected
04:56کہہ دیتا
04:57ہوں
04:57just
04:57to
04:57remove
04:58the
04:58confusion
04:58expect
04:58یہ
04:59ایک
04:59add
05:00کرتا
05:00ہے
05:00جو
05:00بھی
05:00number
05:012
05:01اس
05:01میں
05:014
05:02کیا
05:02то
05:02expected
05:035
05:03تھا
05:03چاہے
05:04میں
05:04اس
05:04کو
05:041
05:04million
05:05time
05:05بھی
05:05run
05:05کروں
05:06تو
05:06یہ
05:06مجھے
05:06expected
05:07output
05:07دے
05:08گا
05:08دوسری
05:09definition
05:10یہ
05:10ہے
05:10کہ
05:10اس
05:11کے
05:11اندر
05:11کوئی
05:12side
05:12effect
05:12نہیں
05:13ہونے
05:13چاہیے
05:13اب
05:14side
05:14effect
05:15کا
05:15مطلب
05:15کیا
05:15ہے
05:15کہ
05:16جب
05:16بھی
05:16یہ
05:17function
05:17کسی
05:19able
05:19کو
05:20کسی
05:20ایسے
05:21method
05:21کو
05:21کسی
05:22ایسے
05:22function
05:23کو
05:23access
05:23کرے
05:23گا
05:24جو
05:25basically
05:25اس کے
05:26scope
05:26سے
05:26باہر
05:26ہے
05:27then
05:27unintended
05:28effect
05:29might
05:29come
05:29ٹھیک
05:30تو
05:31ہم
05:32ایک
05:32idealistic
05:33function
05:34کی
05:34definition
05:34سے
05:34باہر
05:35نکل
05:35گئے
05:35مثال
05:35کے
05:36طور پر
05:36print
05:36اب
05:37میں
05:37یہاں
05:37پہ
05:37کھا رہا
05:37ہوں
05:37نا
05:37یہ
05:38function
05:38کے
05:38scope
05:38سے
05:38باہر
05:39ہے
05:39اگر
05:39یہ
05:39print
05:40میں
05:40basically
05:41function
05:41کے
05:41اندر
05:41لے
05:42جاتا
05:42ہوں
05:42میں
05:42کہتا
05:42ہوں
05:42return
05:43کرنا
05:43ہے
05:43printed
05:44value
05:44of
05:44add
05:451
05:45ٹھیک
05:47ہے
05:47اب
05:47میں
05:47اس
05:47کو
05:47execute
05:48کرتا
05:48تو
05:49result
05:49مجھے
05:49یہ
05:49وحی
05:49دے
05:50رہا
05:50ہے
05:50اب
05:50اس
05:50میں
05:50کوئی
05:50فرق
05:51نہیں
05:51ہے
05:51however
05:52دوسرا
05:53جو
05:53rule
05:55ہے
05:55ایک
05:55idealistic
05:56function
05:57کا
05:57وہ
05:58violate
05:58ہو
05:58گیا
05:58کیونکہ
05:59مجھے
05:59نہیں
05:59پتا
05:59کہ
05:59print
06:00کے
06:00اندر
06:00اور
06:01print
06:01کس
06:01طریقے
06:02سے
06:02print
06:02کرتا
06:02ہے
06:03چھوٹی
06:04سی
06:04example
06:04دے
06:05رہا
06:05ہوں
06:05تو
06:06میں
06:07یہ
06:07نہیں
06:07کہ
06:07رہا
06:08کہ
06:08آپ
06:08اپنے
06:09جو
06:10development
06:10career
06:10کے
06:11اندر
06:11آپ
06:11نے
06:11بس
06:11pure
06:12جو
06:12idealistic
06:14function
06:14ہے
06:14وہ
06:14ہی
06:15لکھنا
06:15ہے
06:15لیکن
06:16میں
06:16یہ
06:16کہ
06:16رہا
06:17ہوں
06:17کہ
06:17آپ
06:17نے
06:17اس
06:17definition
06:18کو
06:18فالو
06:18کرنا
06:19ہے
06:19کہ
06:19کسی
06:19نہ
06:19کسی
06:20طریقے
06:20سے
06:20آپ
06:20closest
06:21پہنچنا
06:22ہے
06:22اس
06:22definition
06:22کے
06:23میں
06:23نے
06:23اگر
06:24ایک
06:24function
06:24لکھنا
06:24ہے
06:25تو
06:25ایک
06:25تو
06:25clean
06:26ہو
06:26easy
06:27to
06:27understand
06:27well
06:28documented
06:29ہو
06:29اس
06:29کی
06:30جو
06:30side
06:31effect
06:31ہیں
06:31وہ
06:32کم
06:32ہو
06:32ٹھیک ہے
06:33اور
06:33ہمیشہ
06:34جو
06:34expected
06:35output
06:35ہے
06:35اس
06:35کو
06:35expected
06:36output
06:36return
06:37کرنی
06:37چاہیے
06:37تو
06:39آپ
06:39نے
06:39چیزوں
06:39کا
06:39خیال
06:40رکھنا
06:40ہے
06:40ٹھیک ہے
06:40تو
06:41this
06:41is
06:41very
06:42important
06:42as
06:43a
06:43quality
06:44of
06:44a
06:44good
06:44developer
06:45you
06:45have
06:45to
06:45be
06:45better
06:48than
06:49average
06:49سمجھ
06:50رہے ہیں
06:50you
06:50have
06:50to
06:50be
06:50above
06:51than
06:51average
06:51okay
06:52تو
06:52یہاں
06:52پہ
06:52اس
06:53lecture
06:53کو
06:53کرتے ہیں
06:53close
06:53this
06:54i
06:54hope
06:54is
06:54very
06:55helpful
06:55for
06:55you

Recommended