print() vs. return in Python Functions

  Рет қаралды 98,094

Coding with Estefania

Coding with Estefania

Күн бұрын

Пікірлер: 84
@MohamedAhmed-rf5bk
@MohamedAhmed-rf5bk 2 жыл бұрын
This answered what I was exactly looking for!! Thank you! ------> 1)A function with a "return" will print whatever you want it to return after you pass it to a variable, while a function with a "print" outputs None! 2) if you call a function with a return, then it will output nothing unless you store it in a variable and call that variable
@lcarolus
@lcarolus 6 ай бұрын
Yep and the variable called "result" cannot hold a print statement (result = print(x + y) It can hold (result = 8)
@bricengono6227
@bricengono6227 2 жыл бұрын
I wonder why Estefania doesn't have millions of followers. She's by far better than those with millions subs. Every day I look at udemy to see if she has released a new course
@simply7712
@simply7712 11 ай бұрын
If i'm not wrong! It is becoz India like countries have population more than 40-50 European countries
@manishgupt1879
@manishgupt1879 5 ай бұрын
​@@simply7712 indian beginners follow famous tutorial, beginners not search documentation types video (which is great for developer)
@manishgupt1879
@manishgupt1879 5 ай бұрын
Beginners like me not know what programming language do and they can not write one line of code
@freestylewarriors3856
@freestylewarriors3856 4 ай бұрын
I totally agree. She’s fantastic 😊
@luislarrazabal9358
@luislarrazabal9358 9 ай бұрын
Hola Estefania, vengo del video de 6 proyectos basicos en Python, gracias por compartir tu conocimiento, ademas que enseñas muy bien, de manera entedible y tienes un tono de voz excelente para enseñar, aprendi mucho de ese video y quiero seguir aprendiendo aca en tu canal, tienes un nuevo suscriptor
@codingwithestefania
@codingwithestefania 9 ай бұрын
Muchas gracias, Luis. 😁 De verdad aprecio mucho tu comentario y me alegra mucho saber que te gustó el curso de Python.
@rayyan_060
@rayyan_060 Жыл бұрын
def add(x,y): print(x+y) add(2,3) its works
@tosinayodejiayegbusi7003
@tosinayodejiayegbusi7003 2 жыл бұрын
Been looking for the simplified explanation for the past few hours, this is what I needed all this while. Thank you. By the way, this is my first time watching your videos, subscribed immediately, I hope to come back here and learn more. Thank you once again. You are doing a great job 💪🏾
@keeyaaaa1178
@keeyaaaa1178 24 күн бұрын
THANK YOU SO MUCHHH!!! i was so confused with the none omg
@adram3lech
@adram3lech Жыл бұрын
You use the verb return to describe the function return which is just mindblowing to me how someone thinks that kind of introduction is descriptive hahahah
@nalinisharma1421
@nalinisharma1421 Жыл бұрын
Thanks alot didi for clearing my doubts.. 😊 I am from India 🇮🇳
@Maliheh.Hosseini
@Maliheh.Hosseini Жыл бұрын
Perfectly explained, Thank you.
@rsouza_bass
@rsouza_bass 8 ай бұрын
very well explained Estefania...cheers from Brazil!
@toddgilbey3979
@toddgilbey3979 11 ай бұрын
A much needed explanation on this. Thank you 😊 👍
@codingwithestefania
@codingwithestefania 10 ай бұрын
I'm glad you found it helpful. 🙂
@eunizelbarrun
@eunizelbarrun Жыл бұрын
Thank you so much. You explained it very well. I totally understand it now, thank you again.
@bagtyyardurdyyev8366
@bagtyyardurdyyev8366 Жыл бұрын
Simple and easy to understand!
@makeupxmaddiee3728
@makeupxmaddiee3728 11 ай бұрын
Thank you this made a lot more sense
@jahmanjoe7007
@jahmanjoe7007 Жыл бұрын
Your explanation is cleared
@johannesperez9548
@johannesperez9548 2 жыл бұрын
Más claro imposible, muchas gracias Estefanía!
@talhabedir3812
@talhabedir3812 Жыл бұрын
Clear, succint explanation
@lokomoko008
@lokomoko008 10 ай бұрын
still dont get it
@tanvvir8996
@tanvvir8996 4 ай бұрын
When you have a variable equal to a function with the return instead of a print, all it does is it does not print into an output. This is useful because sometimes you need to do more calculations with that return and then you could print it later.
@druid7653
@druid7653 4 ай бұрын
Bro its nothing While printing u cant call the sum value back But if u use return u can recall it again whenever u need it
@lawrenceAbimbola
@lawrenceAbimbola 3 ай бұрын
Fr mehn
@santoshs7417
@santoshs7417 2 ай бұрын
❤❤❤ awesome 👍 thanks 🙏
@Shubhamkatole.
@Shubhamkatole. 2 күн бұрын
​@@druid7653just because of your explanation skills you got one subscriber..and can you help me learn python and Java..?
@dannyezechukwu1175
@dannyezechukwu1175 Жыл бұрын
Great video! Idea was communicated clearly!
@Merotx-i1b
@Merotx-i1b 2 ай бұрын
Thank you, needed this!
@shripadkhandare
@shripadkhandare 2 жыл бұрын
hey THank You so much ! I was confused about this but now its all clear😃😃
@maxherrera396
@maxherrera396 Жыл бұрын
Thank you so much for sharing your knowledge with the rest of us. I highly appreciate it. You just got yourself a new subscriber!
@kanhaiyalalgurjar7813
@kanhaiyalalgurjar7813 Жыл бұрын
Easy explanation, thanks a lot sister 👍
@bhavikvegad3449
@bhavikvegad3449 2 жыл бұрын
thank you Estefania !! for this concept , can you make video about vs code also like to configure folders changing drives in vs code etc.... it will be appreciated !!
@kuzakani4297
@kuzakani4297 2 жыл бұрын
bueno, siempre es bueno una explicación por si a alguien le da esa duda.
@raven.4815
@raven.4815 2 жыл бұрын
Supongo que entedes el español (porque vi varios comentarios en tu canal escritos en este idioma) asi que bueno, en cualquier caso, muchas gracias, por fin logre entenderlo!! Sos genia, sabelo!
@lcarolus
@lcarolus 6 ай бұрын
Hi Estefania..You have a new subscriber..Thanks for simplifiying the return statement. So the variable called results = print(x + y) and a variable is suppose to hold a value not a print statement. Thats why the return statement need to be use to return a value to the variable called results..Correct me if I am wrong
@zii_codes
@zii_codes 2 жыл бұрын
Hy Estefania this was deeply helpful, but as a review, I think it would be better if you highlighted the last summary on the differences, preferably in written form. but anyways thaanks
@26237
@26237 9 ай бұрын
I Wish mam you will success in life
@Blessuccess
@Blessuccess Жыл бұрын
Thank you! Excellent explanation
@IshamCespedes
@IshamCespedes Жыл бұрын
Hey, thanks so much for your video, you have an excellent way of explaining things. One question to summarize everything; should I only use return when I’m asking a value to a variable?
@techdoors1799
@techdoors1799 Жыл бұрын
I love your explanation :)
@pratikshasalunkhe1308
@pratikshasalunkhe1308 Жыл бұрын
Wonderful explain thanks dear 🙏💐
@zee-zw2gk
@zee-zw2gk 2 жыл бұрын
this was actually helpful tysm
@jdoe4548
@jdoe4548 Жыл бұрын
super clear! thatnk you
@mohsinfareed1797
@mohsinfareed1797 Жыл бұрын
Great. Well done. thanks.
@liri1189
@liri1189 2 жыл бұрын
Great video. Could you please explain the following? "Python function return values must be stored in variables" - False
@clevenielsonvieira5905
@clevenielsonvieira5905 11 ай бұрын
Very Good!!
@Nekrokon
@Nekrokon Жыл бұрын
Thank you, that helped me. Thumbs up :)
@easydatascience2508
@easydatascience2508 Жыл бұрын
Hope my playlists will be helpful for you too. Just check and try , most of the Python tutorials (and a R playlist too), with all the files available (see description of the video)
@aminemohamedannidam9621
@aminemohamedannidam9621 10 ай бұрын
thanks
@codingwithestefania
@codingwithestefania 10 ай бұрын
I'm glad you found it helpful. 🙂
@MdJameelAhmedJamee
@MdJameelAhmedJamee 2 жыл бұрын
I really crushed on your voice🤧, it's really cool. also a wonderful video 😇
@riflevision
@riflevision Жыл бұрын
So what happens to the 8 when print is used
@aurnaur_itsanamerican5133
@aurnaur_itsanamerican5133 Жыл бұрын
Great video! Very helpful :)
@Samuel-br6lr
@Samuel-br6lr 2 жыл бұрын
God bless you 🥺🥺🥺
@ramprasath-lz9qh
@ramprasath-lz9qh 7 ай бұрын
which code editor is this?
@Pauldieterbrandt
@Pauldieterbrandt Жыл бұрын
Thank you (:
@gandalffury127
@gandalffury127 4 ай бұрын
Did not get it.
@nasraldeneisa4172
@nasraldeneisa4172 Жыл бұрын
so nice
@rohit_fitness2266
@rohit_fitness2266 Ай бұрын
🙏 thanks
@ImtaeZ
@ImtaeZ 6 ай бұрын
Good vids
@angryman5517
@angryman5517 Жыл бұрын
If you call a python function that doesn't have a return statement, it will return null
@pichytechno6782
@pichytechno6782 Жыл бұрын
Ok Estefania I like your videos but I have a question that I sent to you on tweeter but no response. how can I make a newline inside the function print in Python? e.g print(num1, num2) how can I make a newline to show num2 appears below num1 inside the same print without having to use one function for each variable, I hope you get my point here. newbie question, my initial solution was: print(num1 , num2) but it doesn't work like that
@jonathanhahka9939
@jonathanhahka9939 7 ай бұрын
This actually made me more confused.
@aliyaperetch8016
@aliyaperetch8016 6 ай бұрын
4:28
@kdpr007
@kdpr007 4 ай бұрын
Thank you for the video. Content was great but presentation needs improvement 1. These are serious knowledge transfer videos, voice modulation is not required 2. do not zoom in/out as it takes away the focus 3. avoid background music as it is generally distracting.
@Random7
@Random7 Ай бұрын
Why result = add(3, 5) Print(result) Output is none, why not "add(3, 5)"
@napzonN
@napzonN Жыл бұрын
no entendi nada
@jangoul
@jangoul Жыл бұрын
why so many clickup ads
@zihanmubarak1890
@zihanmubarak1890 5 ай бұрын
you can't print the output of a code once again, that's the matter i think
@juliagarrett3945
@juliagarrett3945 Ай бұрын
Still lost 😢
@superpayaseria
@superpayaseria 6 ай бұрын
Why am I the only one dumber than everyone. You still went way way way way too fast for me. As if we already knew 90% of what you're talking about.
@Bwekfest
@Bwekfest 6 ай бұрын
Tip: There's a Playback Speed option for slow people. You can change the speed of the video there.
@faresfbm6061
@faresfbm6061 5 ай бұрын
you're not the only one😐
@elchinsir
@elchinsir 6 ай бұрын
The way you explain is more confusing.
@Bwekfest
@Bwekfest 6 ай бұрын
This is literally the first way I have understood it finally. Many people have many ways of understanding things.
@catination8443
@catination8443 7 ай бұрын
thankyou
Python String Slicing Examples with For Loops | Tutorial
11:51
Coding with Estefania
Рет қаралды 17 М.
Functions in Python are easy 📞
10:38
Bro Code
Рет қаралды 557 М.
Family Love #funny #sigma
00:16
CRAZY GREAPA
Рет қаралды 57 МЛН
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 141 МЛН
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 45 МЛН
Please Master These 10 Python Functions…
22:17
Tech With Tim
Рет қаралды 209 М.
15 Python Libraries You Should Know About
14:54
ArjanCodes
Рет қаралды 401 М.
Python dataclasses will save you HOURS, also featuring attrs
8:50
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 325 М.
Return Statement | Python | Tutorial 15
6:15
Giraffe Academy
Рет қаралды 258 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 608 М.
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 814 М.
All 39 Python Keywords Explained
34:08
Indently
Рет қаралды 206 М.
Family Love #funny #sigma
00:16
CRAZY GREAPA
Рет қаралды 57 МЛН