Skip to main content

Command Palette

Search for a command to run...

Difference Between The Print And Return Statement In Python

Published
•1 min read•View as Markdown
Difference Between The Print And Return Statement In Python
I

I am a developer,student from newham,london and just likes to play around with coding i am 11 years old

So i started learning python a few months ago, I love learning python and here is something i learnt, this is the difference between the return and print statement. I learnt it all from Ulesson coding school.

Return-Is the main way a function returns something from another function.

Print- It is mainly to print out a function for a human to see.

In simple terms the return changes the flow of the program but the print doesn't.

T

Nice job ian

R

This is beautiful ian, you're doing great.