• Learn
    • Courses
    • Career Tracks
    • Projects
    • Upcoming Courses
  • Certificates
    • Career Track Certificate
    • Course Certificate
  • Resources
    • All Resources
    • Course Notes
    • Templates
    • Infographics
    • Career Guides
    • Practice Exams
    • Blog
    • Reviews
    • Success Stories
    • Flashcards
    • Calculators
    • Interview Simulator
  • Pricing
  • Corporate Training
  • Login
  • Sign Up
Log In Sign Up
Follow this topic
Share
Youssef Elfadaly
Last answered:

17 Nov 2022

Posted on:

14 Nov 2022

0

return function

in Introduction to Python / How to Create a Function with a Parameter

what's return function mean ? or when should I use it ?

1 answers ( 0 marked as helpful)
Tsvetelin Tsonkov
Instructor
Posted on:

17 Nov 2022

1

Hi Youssef!
Thanks for reaching out.

The return statement is to exit a function and return a value.

Hope this helps.
Best,
Tsvetelin

Submit an answer

related questions

Martin Nde
0
8
Print "outcome" and return result
Ferdinand John Dobli
1
6
Resolved: Concering about the function named "def"
Jaiswal Benjo Felipe
0
6
Creating a Function to find dictionary entries
Amy Law
0
4
Resolved: Why it didn't return "Less" as output?
Christine Li
0
4
Division operations return different values
Phanas Heinelt
0
2
Resolved: If those are functions, why don't we close it with a colon and execute "return" this time?
Ferdinand Abija
0
2
Why is this function not working on my system?
Fazley Azim Sabbir
2
2
Resolved: Print function returns calculated output
Peter Aziz
0
2
the difference between return and print
Panagiotis Blatsas
0
2
Resolved: In exercise 6.6 in the example you provide in the end, what is the meaning of defining this function
Meenakshi Dangi
0
2
Resolved: define a function in the other function
MUHAMMAD HARIS
0
2
When to use print vs return( in the video use conditional statements and functions together)

All the Data Science Courses You Need

About

  • About Us
  • Meet the Instructors
  • Become an Instructor
  • Contact Us
  • Pricing

Learn

  • Courses
  • Career Tracks
  • Career Certificate
  • Course Certificate

Resources

  • Course Notes
  • Templates
  • Career Guides
  • Practice Exams
  • Calculators
  • Flashcards
  • Blog

Platform

  • Success stories
  • Q&A Hub
  • Help Center
  • Verify Certificate

Business

  • Corporate Training
  • Team Plan
  • Live Training

Business

  • Corporate Training
  • Team Plan
  • Live Training
© 2025 365 Data Science. All Rights Reserved.
Sitemap Terms of Use Privacy Policy Cookies