Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

The difference between the print and return statements in python

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,263
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 23, 2010

This is a short video that illustrates the differences between the print and return statements in python.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (summetj)

  • It's working for me...

see all

All Comments (11)

Sign In or Sign Up now to post a comment!
  • thank you....

  • Cool!

  • Very clear and informative, thanks from Portugal

  • So, shouldnt they just change the color of the returned value or bold it or something... It would probably be less confusing. *Is there a way to do that? =)

  • I still don't get it.

  • So when the function is assigned to the variable "q" it just prints the number 5 automatically because that is what the function does.

  • Thank you for making this video. I was confused about this before. Now I am not.

  • Cool!

  • Thanks for the clear and simple explanation.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more