Using a Function in Another Function | Python Tutorial for Beginners

  Рет қаралды 38,122

365 Data Science

365 Data Science

Күн бұрын

Пікірлер: 13
@365DataScience
@365DataScience 4 жыл бұрын
👉🏻 Get 57% OFF 'The 365 Data Science Program': bit.ly/2WnHEfU
@91dgross
@91dgross 3 жыл бұрын
If you analyze what’s going on, technically speaking, you are not using a function within a function. You are precisely using the same value associated with the parameter of the first function definition as the second function definition. That is not “using a function in a function”. If you were truly using a function within a function, in the second function call you would be able to say w_bonus(w_hours) as a way to pass the original value associated with parameter/variable “w_hours” found in the function defined as wage. But this would run an error of “w_hours” not being defined. So again, you are not actually using a function within a function, you are clearly passing the same value to both functions definitions in the function calls. And of course in the second function call you add 50. Not to be pedantic, but as a self learner it’s frustrating when educators lack the literalness in their thinking and their language (especially in a subject as comprehensive as this) to transmit concepts in a clear and accurate way. Technically speaking, as technicality is what I am concerned with in this kind of learning, this is NOT passing a function to another function. If that were the case, using the exact parameter from the first function definition would be all one would need to include as an argument/value in the second function call.
@thomasblacker129
@thomasblacker129 2 жыл бұрын
This is correct. It took me ages to realize that was the reason why my function variables kept coming up as 'undefined'.
@faisalshafiuddin1018
@faisalshafiuddin1018 Жыл бұрын
i mean what he did is right but exaclty what i wanted then i realised what your saying exaclty what i was looking for. bascially like nested method function.
@harshkhanna1628
@harshkhanna1628 Жыл бұрын
True. Clickbait video
@mnageh-bo1mm
@mnageh-bo1mm Жыл бұрын
indeed
@theoguerrero2975
@theoguerrero2975 2 жыл бұрын
Thanks for your advice.
@kaarthik9
@kaarthik9 2 жыл бұрын
Thanks!
@mammon-sama884
@mammon-sama884 Жыл бұрын
what if making the return statement ends up in a typeError unsupported operand type(s) for * or pov(): 'str' and 'int' ?
@ফকিরতালিব
@ফকিরতালিব 2 жыл бұрын
From the heading, I expected a function defined within the body of another function in this video. You did not do the same here!
@bamanjagadeesh8145
@bamanjagadeesh8145 4 жыл бұрын
Very nice, can you please provide all this in a single pdf, it's helps us a lot
@CrazyFanaticMan
@CrazyFanaticMan 3 жыл бұрын
Why a pdf?
@wibiz9657
@wibiz9657 2 жыл бұрын
This makes no sense.
4 Essential Python Projects for Beginners in Data Science
6:15
365 Data Science
Рет қаралды 17 М.
Python Functions (The Only Guide You'll Need) #12
16:57
Programiz
Рет қаралды 614 М.
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
How to use Resources in Godot 4
8:08
Bitlytic
Рет қаралды 3,2 М.
How To Use Functions In Python (Python Tutorial #3)
14:55
CS Dojo
Рет қаралды 2,4 МЛН
Please Master These 10 Python Functions…
22:17
Tech With Tim
Рет қаралды 240 М.
R vs Python
7:07
IBM Technology
Рет қаралды 342 М.
Starting a Career in Data Science (10 Thing I Wish I Knew…)
10:42
Sundas Khalid
Рет қаралды 249 М.
Creating a Function with a Parameter | Python Tutorial for Beginners
3:50
Python Tutorial for Beginners 8: Functions
21:48
Corey Schafer
Рет қаралды 1,1 МЛН
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН