print() vs. return in Python Functions

  Рет қаралды 73,111

Coding with Estefania

Coding with Estefania

Күн бұрын

In this video, you will learn the differences between the return statement and the print function when they are used inside Python functions. We will see an example of each one of them and its applications.
⏳ Content
00:00 Introduction
00:20 The return statement
01:58 print() in Python functions
04:27 Summary of their differences
💻 To learn more about Python, check out my playlist Python Basics for Beginners: • Python Basics for Begi...
📱 You can also find me on:
Twitter: / estefaniacassn
Instagram: / estefaniacassn
#coding #programming #python #pythonprogramming #learntocode #100daysofcode

Пікірлер: 70
@bricengono6227
@bricengono6227 Жыл бұрын
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 5 ай бұрын
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
@MohamedAhmed-rf5bk
@MohamedAhmed-rf5bk Жыл бұрын
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 Ай бұрын
Yep and the variable called "result" cannot hold a print statement (result = print(x + y) It can hold (result = 8)
@tosinayodejiayegbusi7003
@tosinayodejiayegbusi7003 Жыл бұрын
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 💪🏾
@maxherrera396
@maxherrera396 10 ай бұрын
Thank you so much for sharing your knowledge with the rest of us. I highly appreciate it. You just got yourself a new subscriber!
@adram3lech
@adram3lech 6 ай бұрын
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
@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?
@Maliheh.Hosseini
@Maliheh.Hosseini Жыл бұрын
Perfectly explained, Thank you.
@johannesperez9548
@johannesperez9548 2 жыл бұрын
Más claro imposible, muchas gracias Estefanía!
@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!
@dannyezechukwu1175
@dannyezechukwu1175 Жыл бұрын
Great video! Idea was communicated clearly!
@rsouza_bass
@rsouza_bass 2 ай бұрын
very well explained Estefania...cheers from Brazil!
@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 !!
@Blessuccess
@Blessuccess 11 ай бұрын
Thank you! Excellent explanation
@makeupxmaddiee3728
@makeupxmaddiee3728 5 ай бұрын
Thank you this made a lot more sense
@talhabedir3812
@talhabedir3812 9 ай бұрын
Clear, succint explanation
@jahmanjoe7007
@jahmanjoe7007 Жыл бұрын
Your explanation is cleared
@shripadkhandare
@shripadkhandare Жыл бұрын
hey THank You so much ! I was confused about this but now its all clear😃😃
@pratikshasalunkhe1308
@pratikshasalunkhe1308 Жыл бұрын
Wonderful explain thanks dear 🙏💐
@zee-zw2gk
@zee-zw2gk Жыл бұрын
this was actually helpful tysm
@mohsinfareed1797
@mohsinfareed1797 Жыл бұрын
Great. Well done. thanks.
@aurnaur_itsanamerican5133
@aurnaur_itsanamerican5133 9 ай бұрын
Great video! Very helpful :)
@raven.4815
@raven.4815 Жыл бұрын
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!
@nalinisharma1421
@nalinisharma1421 Жыл бұрын
Thanks alot didi for clearing my doubts.. 😊 I am from India 🇮🇳
@jdoe4548
@jdoe4548 Жыл бұрын
super clear! thatnk you
@techdoors1799
@techdoors1799 Жыл бұрын
I love your explanation :)
@luislarrazabal9358
@luislarrazabal9358 4 ай бұрын
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 3 ай бұрын
Muchas gracias, Luis. 😁 De verdad aprecio mucho tu comentario y me alegra mucho saber que te gustó el curso de Python.
@lcarolus
@lcarolus Ай бұрын
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 Жыл бұрын
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
@liri1189
@liri1189 Жыл бұрын
Great video. Could you please explain the following? "Python function return values must be stored in variables" - False
@toddgilbey3979
@toddgilbey3979 6 ай бұрын
A much needed explanation on this. Thank you 😊 👍
@codingwithestefania
@codingwithestefania 4 ай бұрын
I'm glad you found it helpful. 🙂
@rayyan_060
@rayyan_060 Жыл бұрын
def add(x,y): print(x+y) add(2,3) its works
@clevenielsonvieira5905
@clevenielsonvieira5905 5 ай бұрын
Very Good!!
@kuzakani4297
@kuzakani4297 2 жыл бұрын
bueno, siempre es bueno una explicación por si a alguien le da esa duda.
@26237
@26237 4 ай бұрын
I Wish mam you will success in life
@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)
@nasraldeneisa4172
@nasraldeneisa4172 Жыл бұрын
so nice
@Pauldieterbrandt
@Pauldieterbrandt 7 ай бұрын
Thank you (:
@kanhaiyalalgurjar7813
@kanhaiyalalgurjar7813 Жыл бұрын
Easy explanation, thanks a lot sister 👍
@MdJameelAhmedJamee
@MdJameelAhmedJamee Жыл бұрын
I really crushed on your voice🤧, it's really cool. also a wonderful video 😇
@catination8443
@catination8443 2 ай бұрын
thankyou
@ImtaeZ
@ImtaeZ Ай бұрын
Good vids
@ramprasath-lz9qh
@ramprasath-lz9qh Ай бұрын
which code editor is this?
@riflevisiongaming9921
@riflevisiongaming9921 11 ай бұрын
So what happens to the 8 when print is used
@aminemohamedannidam9621
@aminemohamedannidam9621 5 ай бұрын
thanks
@codingwithestefania
@codingwithestefania 4 ай бұрын
I'm glad you found it helpful. 🙂
@Samuel-br6lr
@Samuel-br6lr Жыл бұрын
God bless you 🥺🥺🥺
@lokomoko008
@lokomoko008 5 ай бұрын
still dont get it
@angryman5517
@angryman5517 9 ай бұрын
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 2 ай бұрын
This actually made me more confused.
@aliyaperetch8016
@aliyaperetch8016 27 күн бұрын
4:28
@zihanmubarak1890
@zihanmubarak1890 4 күн бұрын
you can't print the output of a code once again, that's the matter i think
@napzonN
@napzonN Жыл бұрын
no entendi nada
@jangoul
@jangoul Жыл бұрын
why so many clickup ads
@superpayaseria
@superpayaseria Ай бұрын
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 Ай бұрын
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 Ай бұрын
The way you explain is more confusing.
@Bwekfest
@Bwekfest Ай бұрын
This is literally the first way I have understood it finally. Many people have many ways of understanding things.
Python String Slicing Examples with For Loops | Tutorial
11:51
Coding with Estefania
Рет қаралды 15 М.
$10,000 Every Day You Survive In The Wilderness
26:44
MrBeast
Рет қаралды 43 МЛН
The Worlds Most Powerfull Batteries !
00:48
Woody & Kleiny
Рет қаралды 17 МЛН
How I prepare to meet the brothers Mbappé.. 🙈 @KylianMbappe
00:17
Celine Dept
Рет қаралды 55 МЛН
Ну Лилит))) прода в онк: завидные котики
00:51
Python lists, sets, and tuples explained 🍍
15:06
Bro Code
Рет қаралды 223 М.
الفرق بين ال Print وال Return في بايثون
7:38
Mahmoud Ahmed - محمود أحمد
Рет қаралды 18 М.
Python Functions (The Only Guide You'll Need) #12
17:20
Programiz
Рет қаралды 544 М.
How To Use Functions In Python (Python Tutorial #3)
14:55
CS Dojo
Рет қаралды 2,3 МЛН
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1 МЛН
Learn Python in Arabic #056 - Function And Return
6:27
Elzero Web School
Рет қаралды 114 М.
Learn Python Functions - Quick Python Project For Beginners
10:04
Python Simplified
Рет қаралды 89 М.
Return vs Print - Python
10:25
Kris Jordan
Рет қаралды 13 М.
$10,000 Every Day You Survive In The Wilderness
26:44
MrBeast
Рет қаралды 43 МЛН