print() vs. return in Python Functions

preview_player
Показать описание
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

📱 You can also find me on:

#coding #programming #python #pythonprogramming #learntocode #100daysofcode
Рекомендации по теме
Комментарии
Автор

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

MohamedAhmed-rfbk
Автор

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

bricengono
Автор

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 💪🏾

tosinayodejiayegbusi
Автор

Thank you so much for sharing your knowledge with the rest of us. I highly appreciate it.

You just got yourself a new subscriber!

maxherrera
Автор

Thank you so much. You explained it very well. I totally understand it now, thank you again.

eunizelbarrun
Автор

Más claro imposible, muchas gracias Estefanía!

johannesperez
Автор

very well explained Estefania...cheers from Brazil!

rsouza_bass
Автор

Great video! Idea was communicated clearly!

dannyezechukwu
Автор

hey THank You so much ! I was confused about this but now its all clear😃😃

shripadkhandare
Автор

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?

IshamCespedes
Автор

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

luislarrazabal
Автор

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

adramlech
Автор

Thanks alot didi for clearing my doubts.. 😊
I am from India 🇮🇳

nalinisharma
Автор

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 !!

bhavikvegad
Автор

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!

raven.
Автор

A much needed explanation on this. Thank you 😊 👍

toddgilbey
Автор

bueno, siempre es bueno una explicación por si a alguien le da esa duda.

kuzakani
Автор

Thank you, that helped me.
Thumbs up :)

Nekrokon
Автор

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

lcarolus
Автор

Great video. Could you please explain the following?
"Python function return values must be stored in variables" - False

liri