{"id":221521,"date":"2023-12-20T07:36:44","date_gmt":"2023-12-20T07:36:44","guid":{"rendered":"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/"},"modified":"2023-12-20T07:36:44","modified_gmt":"2023-12-20T07:36:44","slug":"what-is-return-value-in-python","status":"publish","type":"post","link":"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/","title":{"rendered":"What is return value in Python?"},"content":{"rendered":"<p>In Python, a return value is the result that a function or a method returns after it has been executed. It allows a function to pass data back to the calling code, which can then be used or manipulated further. The return value can be of any data type, such as a number, string, list, or even another function.<\/p>\n<p>The return statement is used in Python to specify the value to be returned. When a return statement is encountered within a function or a method, the execution of the function is terminated, and the specified value is returned to the caller.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_62 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#Example\" title=\"Example:\">Example:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#Frequently_Asked_Questions_FAQs_about_return_value_in_Python\" title=\"Frequently Asked Questions (FAQs) about return value in Python:\">Frequently Asked Questions (FAQs) about return value in Python:<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#Q1_How_many_return_statements_can_a_function_have_in_Python\" title=\"Q1: How many return statements can a function have in Python?\">Q1: How many return statements can a function have in Python?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#Q2_Can_a_Python_function_return_multiple_values\" title=\"Q2: Can a Python function return multiple values?\">Q2: Can a Python function return multiple values?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#Q3_What_happens_if_a_function_does_not_have_a_return_statement\" title=\"Q3: What happens if a function does not have a return statement?\">Q3: What happens if a function does not have a return statement?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#Q4_Can_a_return_statement_be_used_anywhere_in_a_Python_function\" title=\"Q4: Can a return statement be used anywhere in a Python function?\">Q4: Can a return statement be used anywhere in a Python function?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#Q5_Can_a_return_statement_be_used_in_a_loop\" title=\"Q5: Can a return statement be used in a loop?\">Q5: Can a return statement be used in a loop?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#Q6_Can_a_return_statement_in_a_Python_function_have_multiple_expressions\" title=\"Q6: Can a return statement in a Python function have multiple expressions?\">Q6: Can a return statement in a Python function have multiple expressions?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#Q7_Can_the_return_value_of_a_function_be_ignored\" title=\"Q7: Can the return value of a function be ignored?\">Q7: Can the return value of a function be ignored?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#Q8_Can_the_return_statement_ever_be_skipped_in_a_function\" title=\"Q8: Can the return statement ever be skipped in a function?\">Q8: Can the return statement ever be skipped in a function?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#Q9_Can_I_return_a_function_from_another_function\" title=\"Q9: Can I return a function from another function?\">Q9: Can I return a function from another function?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#Q10_Can_the_return_value_be_modified_after_the_return_statement_in_a_function\" title=\"Q10: Can the return value be modified after the return statement in a function?\">Q10: Can the return value be modified after the return statement in a function?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#Q11_Can_a_function_return_an_instance_of_a_class\" title=\"Q11: Can a function return an instance of a class?\">Q11: Can a function return an instance of a class?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#Q12_Can_a_return_statement_be_used_in_a_recursive_function\" title=\"Q12: Can a return statement be used in a recursive function?\">Q12: Can a return statement be used in a recursive function?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Example\"><\/span>Example:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Let&#8217;s take a look at a simple example to understand the concept of the return value in Python:<\/p>\n<p>&#8220;`python<br \/>\ndef add_numbers(a, b):<br \/>\n    sum = a + b<br \/>\n    return sum<\/p>\n<p>result = add_numbers(5, 3)<br \/>\nprint(result)  # Output: 8<br \/>\n&#8220;`<\/p>\n<p>In this example, the `add_numbers()` function takes two arguments `a` and `b` and adds them together to calculate the sum. The `return` statement is then used to pass back the computed sum as the return value.<\/p>\n<p>The value returned by the function call `add_numbers(5, 3)` is stored in the variable `result`, and finally, it is printed to the console. Therefore, the output would be `8`.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Frequently_Asked_Questions_FAQs_about_return_value_in_Python\"><\/span>Frequently Asked Questions (FAQs) about return value in Python:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"Q1_How_many_return_statements_can_a_function_have_in_Python\"><\/span>Q1: How many return statements can a function have in Python?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nA function can have multiple return statements, but only one of them gets executed, and the function terminates when a return statement is encountered.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q2_Can_a_Python_function_return_multiple_values\"><\/span>Q2: Can a Python function return multiple values?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, it is possible for a Python function to return multiple values. This can be achieved using tuples, lists, or dictionaries.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q3_What_happens_if_a_function_does_not_have_a_return_statement\"><\/span>Q3: What happens if a function does not have a return statement?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nIf a function does not have a return statement, it returns `None` by default.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q4_Can_a_return_statement_be_used_anywhere_in_a_Python_function\"><\/span>Q4: Can a return statement be used anywhere in a Python function?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nNo, a return statement can only be used inside a function or a method.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q5_Can_a_return_statement_be_used_in_a_loop\"><\/span>Q5: Can a return statement be used in a loop?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, a return statement can be used inside a loop. When the return statement is executed, the function will terminate, regardless of whether the loop has finished or not.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q6_Can_a_return_statement_in_a_Python_function_have_multiple_expressions\"><\/span>Q6: Can a return statement in a Python function have multiple expressions?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nNo, a return statement can only have a single expression or value that will be returned.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q7_Can_the_return_value_of_a_function_be_ignored\"><\/span>Q7: Can the return value of a function be ignored?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, it is possible to call a function and ignore its return value by not assigning it to any variable.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q8_Can_the_return_statement_ever_be_skipped_in_a_function\"><\/span>Q8: Can the return statement ever be skipped in a function?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, the return statement can be skipped if it is conditionally placed inside an `if` statement that never evaluates to `True`.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q9_Can_I_return_a_function_from_another_function\"><\/span>Q9: Can I return a function from another function?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, functions are first-class objects in Python, so you can return a function from another function.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q10_Can_the_return_value_be_modified_after_the_return_statement_in_a_function\"><\/span>Q10: Can the return value be modified after the return statement in a function?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nNo, once the return statement is encountered, the function immediately stops executing, and any subsequent statements are ignored.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q11_Can_a_function_return_an_instance_of_a_class\"><\/span>Q11: Can a function return an instance of a class?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, a function can return an instance of a class or an object.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Q12_Can_a_return_statement_be_used_in_a_recursive_function\"><\/span>Q12: Can a return statement be used in a recursive function?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, in a recursive function, a return statement can be used to stop the recursion when a certain condition is met.<\/p>\n<p>To conclude, the return value in Python is a way for functions and methods to pass back data to the calling code. It allows the programmer to reuse and process the returned value as needed. By understanding how to use and manipulate return values effectively, you can enhance the functionality and flexibility of your Python programs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Python, a return value is the result that a function or a method returns after it has been executed. It allows a function to pass data back to the calling code, which can then be used or manipulated further. The return value can be of any data type, such as a number, string, list, &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"What is return value in Python?\" class=\"read-more button\" href=\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#more-221521\">Read more<span class=\"screen-reader-text\">What is return value in Python?<\/span><\/a><\/p>\n","protected":false},"author":56,"featured_media":107420,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86279],"tags":[],"class_list":["post-221521","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learn","no-featured-image-padding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is return value in Python?<\/title>\n<meta name=\"description\" content=\"In Python, a return value is the result that a function or a method returns after it has been executed. It allows a function to pass data back to the\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is return value in Python?\" \/>\n<meta property=\"og:description\" content=\"In Python, a return value is the result that a function or a method returns after it has been executed. It allows a function to pass data back to the\" \/>\n<meta property=\"og:url\" content=\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/\" \/>\n<meta property=\"og:site_name\" content=\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/synchronyfinancial\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-20T07:36:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"500\" \/>\n\t<meta property=\"og:image:height\" content=\"164\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Sarah Prince\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@synchrony\" \/>\n<meta name=\"twitter:site\" content=\"@synchrony\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sarah Prince\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/\"},\"author\":{\"name\":\"Sarah Prince\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/80e5190de9e3c306f162d2194af9fcec\"},\"headline\":\"What is return value in Python?\",\"datePublished\":\"2023-12-20T07:36:44+00:00\",\"dateModified\":\"2023-12-20T07:36:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/\"},\"wordCount\":630,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"articleSection\":[\"Learn\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/\",\"name\":\"What is return value in Python?\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\"},\"datePublished\":\"2023-12-20T07:36:44+00:00\",\"dateModified\":\"2023-12-20T07:36:44+00:00\",\"description\":\"In Python, a return value is the result that a function or a method returns after it has been executed. It allows a function to pass data back to the\",\"breadcrumb\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/namso-gen.co\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is return value in Python?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"description\":\"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co\",\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/namso-gen.co\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"contentUrl\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"width\":500,\"height\":164,\"caption\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\"},\"image\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/synchronyfinancial\",\"https:\/\/twitter.com\/synchrony\",\"https:\/\/www.youtube.com\/synchronyfinancial\",\"https:\/\/www.instagram.com\/synchrony\",\"https:\/\/www.linkedin.com\/company\/synchrony-financial\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/80e5190de9e3c306f162d2194af9fcec\",\"name\":\"Sarah Prince\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Sarah Prince\"},\"description\":\"Guest author Sarah Prince has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is return value in Python?","description":"In Python, a return value is the result that a function or a method returns after it has been executed. It allows a function to pass data back to the","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/","og_locale":"en_US","og_type":"article","og_title":"What is return value in Python?","og_description":"In Python, a return value is the result that a function or a method returns after it has been executed. It allows a function to pass data back to the","og_url":"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/","og_site_name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","article_publisher":"https:\/\/www.facebook.com\/synchronyfinancial","article_published_time":"2023-12-20T07:36:44+00:00","og_image":[{"width":500,"height":164,"url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","type":"image\/png"}],"author":"Sarah Prince","twitter_card":"summary_large_image","twitter_creator":"@synchrony","twitter_site":"@synchrony","twitter_misc":{"Written by":"Sarah Prince","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#article","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/"},"author":{"name":"Sarah Prince","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/80e5190de9e3c306f162d2194af9fcec"},"headline":"What is return value in Python?","datePublished":"2023-12-20T07:36:44+00:00","dateModified":"2023-12-20T07:36:44+00:00","mainEntityOfPage":{"@id":"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/"},"wordCount":630,"commentCount":0,"publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"articleSection":["Learn"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/","url":"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/","name":"What is return value in Python?","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/#website"},"datePublished":"2023-12-20T07:36:44+00:00","dateModified":"2023-12-20T07:36:44+00:00","description":"In Python, a return value is the result that a function or a method returns after it has been executed. It allows a function to pass data back to the","breadcrumb":{"@id":"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/namso-gen.co\/blog\/what-is-return-value-in-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/namso-gen.co\/blog\/"},{"@type":"ListItem","position":2,"name":"What is return value in Python?"}]},{"@type":"WebSite","@id":"https:\/\/namso-gen.co\/blog\/#website","url":"https:\/\/namso-gen.co\/blog\/","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","description":"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co","publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/namso-gen.co\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/namso-gen.co\/blog\/#organization","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","url":"https:\/\/namso-gen.co\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","contentUrl":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","width":500,"height":164,"caption":"Namso Gen Blog - Free Credit Card Generator [100% Valid]"},"image":{"@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/synchronyfinancial","https:\/\/twitter.com\/synchrony","https:\/\/www.youtube.com\/synchronyfinancial","https:\/\/www.instagram.com\/synchrony","https:\/\/www.linkedin.com\/company\/synchrony-financial"]},{"@type":"Person","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/80e5190de9e3c306f162d2194af9fcec","name":"Sarah Prince","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Sarah Prince"},"description":"Guest author Sarah Prince has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here."}]}},"_links":{"self":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/221521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/users\/56"}],"replies":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/comments?post=221521"}],"version-history":[{"count":0,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/221521\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media\/107420"}],"wp:attachment":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media?parent=221521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/categories?post=221521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/tags?post=221521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}