Python Functions That Return Nothing: Understanding Implicit Returns

Welcome to MasterPythonNow, your gateway to Python mastery! Ever wondered what happens when a Python function seems to return nothing? Dive into our latest article, "Python Functions That Return Nothing: Understanding Implicit Returns," and unlock the secrets behind Python implicit return values. Prepare to demystify this fundamental concept and elevate your Python skills. Let's begin!
- Introduction to Python Functions and Return Values
- What is an Implicit Return in Python?
- Python Functions Returning 'None': Practical Examples
- Identifying and Handling Python Implicit Return Values
- Python Implicit Returns vs. Explicit Returns: A Comparison
- Debugging Python Code with Implicit Returns
- Advanced Concepts: Implicit Returns in Python and Object Mutability
- Best Practices for Working with Python Return Values
- Conclusion: Mastering Python Implicit Return Values for Cleaner Code
-
Frequently Asked Questions
- What are Python implicit return values, and when do they occur?
- How can I identify if a Python function is using an implicit return?
- Does relying on implicit returns in Python affect code readability or maintainability?
- Are there situations where using implicit returns in Python is considered acceptable or even preferable?
- How can I handle unexpected None values resulting from unintended implicit returns in my Python code?
- Final Reflection: Embracing the Void in Python
- Unleash Your Python Power: Code with Confidence!
Introduction to Python Functions and Return Values
The Basics of Python Functions: Definition and Usage
In Python, functions are fundamental building blocks for structuring code and promoting reusability. A function is a block of organized, reusable code that performs a specific task. Functions are defined using the def keyword, followed by the function name, parentheses (), and a colon :. Parameters or arguments can be passed inside the parentheses, allowing functions to operate on different data. To execute a function, you must call it by its name, followed by parentheses.
Consider a simple example of a Python function designed to greet a user:
def greet(name):
print(f"Hello, {name}!")
greet("Alice") # Calling the function
This greet function takes one argument, name, and prints a greeting message. Functions like this encapsulate actions, making code modular and easier to understand. They are crucial for breaking down complex problems into smaller, manageable pieces, which is a cornerstone of good programming practice in Python and beyond.
Understanding Explicit Return Statements in Python
The return statement in Python functions is used to send a value back to the caller of the function. When a return statement is encountered, the function execution stops, and the specified value is returned. If a function needs to produce a result that will be used in subsequent parts of your code, an explicit return statement is essential.
For instance, let's create a function that explicitly returns the sum of two numbers:
def add_numbers(x, y):
return x + y
result = add_numbers(5, 3)
print(result) # Output: 8
In this add_numbers function, the return x + y line ensures that the sum of x and y is explicitly returned. This returned value can then be stored in a variable, like result in this example, and used elsewhere in the program. Explicit return statements make the function's purpose and output clear and predictable, contributing to code clarity and maintainability.
What is an Implicit Return in Python?
Defining Implicit Return Values: When Functions Don't Explicitly Return
In contrast to explicit returns, Python functions can also have implicit return values. An implicit return occurs when a function completes its execution without encountering a return statement. In such cases, Python automatically returns a default value, which is None. This behavior is a core aspect of Python's design, ensuring that all functions, regardless of whether they explicitly return a value, will always return something.
Consider a function that prints a message but does not include a return statement:
def print_message(message):
print(message)
result = print_message("This function has no explicit return.")
print(result) # Output: None
Even though print_message performs an action (printing a message), it does not explicitly return any value. As a result, when you call print_message and assign its output to result, result becomes None. This illustrates the concept of an implicit return in Python, where the absence of an explicit return statement leads to a default return value of None.
The 'None' Object: Python's Default Implicit Return Value
The None object in Python is a special constant that represents the absence of a value or a null value. It is often used as the default return value of functions that do not explicitly return anything. None is a first-class object in Python, meaning it can be assigned to variables, passed as arguments to functions, and returned from functions, just like any other value. It is crucial to understand that None is not the same as zero, False, or an empty string; it is its own distinct type, NoneType.
When a Python function reaches the end of its code block without a return statement, Python implicitly adds return None at the end. This ensures that every function call evaluates to some value, even if that value signifies 'nothing' or 'no specific result'. This consistent behavior is a deliberate design choice in Python to maintain uniformity and avoid undefined behavior in function calls.
Why Python Uses Implicit Returns
Python's design choice to have implicit returns, defaulting to None, serves several purposes in promoting code clarity and robustness. Firstly, it simplifies function design for operations that are primarily about side effects rather than producing a value. For instance, functions that modify data in place, like sorting a list or updating a database record, might not need to return a specific value; their primary effect is the modification itself. In such cases, implicitly returning None signals that the function's main purpose is not to compute and return a new value, but rather to perform an action.
Secondly, implicit returns contribute to Python's dynamic nature and flexibility. By ensuring every function call returns a value, even if it's None, Python avoids the need for special handling of functions that might not return anything. This consistency simplifies function calls and reduces potential errors related to uninitialized or undefined return values. It also aligns with Python's philosophy of "explicit is better than implicit" by making it clear, through the None return, that no specific value is being returned, even when it's not explicitly stated in the code.
Python Functions Returning 'None': Practical Examples
Example 1: A Function Without a Return Statement
Consider a function designed to print a user's name and age. This function's primary purpose is to display information, not to compute and return a value.
def display_info(name, age):
print(f"Name: {name}")
print(f"Age: {age}")
result = display_info("Bob", 30)
print(f"Return value: {result}") # Output: Return value: None
In this example, display_info prints the provided name and age to the console. It does not contain a return statement. Consequently, when we call display_info and examine the returned value, we find it to be None. This demonstrates a common scenario where a function performs an action (printing information) but does not explicitly return a value, leading to an implicit None return.
Example 2: Modifying Data Structures In-Place
Many built-in Python methods and functions that modify data structures in-place, such as list methods like append(), sort(), and reverse(), implicitly return None. Their effect is to change the original data structure directly, rather than creating a new modified copy.
my_list = [3, 1, 4, 1, 5, 9, 2, 6]
sorted_list = my_list.sort() # Sorts the list in-place
print(my_list) # Output: [1, 1, 2, 3, 4, 5, 6, 9] (Original list is modified)
print(sorted_list) # Output: None (sort() method returns None)
Here, my_list.sort() sorts the list my_list directly. The sort() method itself returns None, indicating that its primary action is the in-place modification of the list, not the creation of a new sorted list. Understanding that such methods implicitly return None is crucial to avoid incorrect assumptions about their return values.
Example 3: Conditional Logic and Implicit Returns
Implicit returns can also occur in functions with conditional logic, especially when not all branches of the conditional statements include an explicit return. If the function execution reaches a point where no return statement is executed in a conditional branch, Python will implicitly return None.
def check_even_odd(number):
if number % 2 == 0:
print("Even") # No explicit return here if number is even
else:
return "Odd"
result_even = check_even_odd(4)
result_odd = check_even_odd(7)
print(f"Return for even: {result_even}") # Output: Return for even: None
print(f"Return for odd: {result_odd}") # Output: Return for odd: Odd
In check_even_odd, if the number is even, it prints "Even" but does not explicitly return anything. Consequently, result_even becomes None. However, if the number is odd, the function explicitly returns "Odd", and result_odd correctly receives this value. This example highlights how implicit returns can arise in conditional structures if not all paths explicitly specify a return value.
Identifying and Handling Python Implicit Return Values
Checking for 'None' Returns: Using 'is' and 'is not'
When working with Python functions that might implicitly return None, it's essential to be able to check for None values effectively. In Python, the recommended way to check if a value is None is by using the is or is not operators, rather than the equality operator ==. This is because is checks for object identity, ensuring you are specifically checking for the None object itself, which is a singleton in Python.
def function_with_implicit_return(value):
if value > 10:
return "Greater than 10"
# Implicit return None otherwise
result1 = function_with_implicit_return(15)
result2 = function_with_implicit_return(5)
if result1 is not None:
print(f"Result 1 is: {result1}") # Output: Result 1 is: Greater than 10
else:
print("Result 1 is None")
if result2 is None:
print("Result 2 is None") # Output: Result 2 is None
else:
print(f"Result 2 is: {result2}")
Using is None and is not None ensures you are correctly identifying None values returned by functions, allowing for robust conditional logic based on whether a function returns a meaningful value or implicitly returns None.
Avoiding Unexpected 'None' Returns: Best Practices
To avoid unexpected None returns and enhance code clarity, it's good practice to be explicit about return values in your Python functions. Even if a function's primary purpose is to perform an action, explicitly returning None can improve readability and signal intent. Furthermore, in functions with conditional logic, ensure that all relevant branches have explicit return statements to prevent unintended implicit None returns.
Consider revising the check_even_odd function from a previous example:
def check_even_odd_explicit(number):
if number % 2 == 0:
print("Even")
return None # Explicitly return None for even numbers
else:
return "Odd"
result_even = check_even_odd_explicit(4)
result_odd = check_even_odd_explicit(7)
print(f"Return for even: {result_even}") # Output: Return for even: None
print(f"Return for odd: {result_odd}") # Output: Return for odd: Odd
By adding return None in the even branch, we make the return behavior explicit, even when the function is intended to return nothing of specific value in that case. This practice makes the function's behavior more predictable and easier to understand at a glance.
Understanding the Implications of 'None' in Python Logic
None plays a significant role in Python's logical evaluations. In boolean contexts, None is considered falsy, meaning it evaluates to False in conditional statements. This behavior can be useful, but it's also crucial to be aware of it to avoid potential logical errors. Other falsy values in Python include False, 0, empty strings ( ""), empty lists ( []), empty tuples ( ()), and empty dictionaries ( {}).
def process_value(value):
if value: # Implicit boolean check: None is falsy
print("Value is considered True-like")
return "Processed"
else:
print("Value is considered False-like (like None)")
return "Not processed"
result_none = process_value(None)
result_string = process_value("Hello")
print(f"None result: {result_none}") # Output: Value is considered False-like (like None), None result: Not processed
print(f"String result: {result_string}") # Output: Value is considered True-like, String result: Processed
In process_value, the if value: condition implicitly checks the truthiness of value. Because None is falsy, when value is None, the else block is executed. Understanding that None is falsy is critical when using function return values in conditional logic, especially when dealing with functions that might implicitly return None.
Python Implicit Returns vs. Explicit Returns: A Comparison
Readability and Maintainability: Which Return Style is Better?
When considering readability and maintainability, explicit return statements generally offer advantages over relying on implicit returns. Explicit returns clearly communicate the function's intended output and make the code's logic easier to follow. When a function has an explicit return statement, it's immediately obvious to someone reading the code what value, if any, the function is designed to produce.
In contrast, relying solely on implicit returns, especially in more complex functions, can make it harder to quickly understand what a function returns, or if it returns anything at all. This can increase cognitive load and make maintenance more challenging, as developers may need to carefully trace through the function's execution path to determine its return behavior. For functions intended to primarily perform actions (side effects) and not return a value, explicitly stating return None can enhance clarity by making the intent explicit rather than implicit. Therefore, while implicit returns are a valid feature of Python, prioritizing explicit returns generally leads to more readable and maintainable code.
Performance Considerations: Implicit vs. Explicit Return Statements
From a performance perspective, the difference between implicit and explicit return statements in Python is typically negligible in most common scenarios. Python's interpreter is designed to handle both types of returns efficiently. Whether a function ends with an explicit return statement or implicitly returns None, the overhead introduced is minimal and unlikely to be a bottleneck in typical applications.
Micro-benchmarking might reveal slight differences in execution time, but these differences are usually so small that they are practically insignificant in real-world applications. The focus should primarily be on code clarity and maintainability rather than attempting to optimize based on choosing between implicit and explicit returns in terms of performance. Premature optimization in this aspect is unlikely to yield meaningful gains and can potentially detract from code readability.
When to Use Implicit Returns in Python: Guidelines
While explicit returns are generally preferred for readability, there are situations where implicit returns are acceptable and even idiomatic in Python. Functions that are primarily designed to perform side effects, such as printing output, modifying objects in-place, or interacting with external systems, often naturally lead to implicit returns. In these cases, the function's value lies in its actions rather than in producing a return value.
For very short, simple functions that obviously perform an action without needing to return a specific value, an implicit return might be considered acceptable, especially if adding return None feels overly verbose. However, as function complexity increases or when the function is intended to return a value under certain conditions but not others, explicitly handling return values, even if it's explicitly returning None, generally enhances code clarity and reduces potential confusion. A good guideline is to prioritize explicit returns, especially in functions that are not trivially simple or when the return behavior is not immediately obvious from the function's name and actions.
Debugging Python Code with Implicit Returns
Common Pitfalls: Forgetting to Return a Value
A common pitfall when working with Python functions, especially for beginners, is forgetting to include a return statement when a function is expected to produce a value. This oversight can lead to unexpected None returns, which can cause errors or incorrect behavior in other parts of the code that rely on the function's output. This is particularly problematic when transitioning from languages where functions must explicitly declare a return type, as Python's dynamic typing and implicit returns can sometimes mask this kind of error during initial development.
For example, if you intend to write a function to calculate the area of a rectangle and forget the return statement:
def calculate_area(length, width):
area = length * width
# Oops! Forgot to return area
result = calculate_area(5, 4)
print(result) # Output: None (Unexpected!)
In this case, the calculate_area function computes the area correctly but fails to return it. As a result, result becomes None, which is likely not the intended outcome and could lead to issues if subsequent code expects result to be a numerical value.
Tracing and Logging 'None' Returns: Debugging Techniques
When debugging Python code and encountering unexpected None values, tracing and logging can be invaluable techniques for identifying the source of the problem. Inserting print statements or using Python's logging module to track function execution and return values can help pinpoint where an implicit None return is occurring unintentionally.
For instance, to debug the calculate_area function, you could add a print statement:
def calculate_area_debug(length, width):
area = length * width
print(f"Calculated area: {area}, Returning: {None}") # Debug print
# Still forgot to return area
result = calculate_area_debug(5, 4)
print(f"Function result: {result}")
By adding print(f"Calculated area: {area}, Returning: {None}"), even though the function still doesn't explicitly return, the print statement helps confirm that the area is being calculated correctly and highlights that the function is indeed returning None implicitly. More sophisticated logging can be used in larger applications to track function calls, arguments, and return values in a structured and less intrusive manner than using print statements.
Using a Debugger to Identify Implicit Returns
A more powerful approach to debugging implicit returns is to use a Python debugger, such as pdb or IDE debuggers. Debuggers allow you to step through your code line by line, inspect variable values, and observe the flow of execution. Setting breakpoints at the end of functions or at points where you suspect an implicit None return might be occurring allows you to directly examine the function's return value and understand the program's state at that point.
Using a debugger, you can execute the calculate_area function and step through it. When you reach the end of the function, you can inspect the return value (which will be None) and realize the missing return statement. Debuggers are particularly useful for complex functions or larger programs where tracing execution manually or with print statements becomes cumbersome. They offer a more interactive and controlled way to understand program behavior and identify the root cause of unexpected None returns.
Advanced Concepts: Implicit Returns in Python and Object Mutability
Understanding Side Effects and Implicit Returns
The concept of implicit returns is closely related to the idea of side effects in programming. Side effects are actions that a function performs that are not directly related to computing and returning a value. Examples of side effects include modifying mutable objects, printing to the console, or interacting with external resources like files or databases. Functions that primarily focus on side effects often implicitly return None because their main purpose is not value computation, but rather to alter the program's state or interact with the outside world.
For example, a function that updates a record in a database:
def update_database_record(record_id, new_data):
# Code to connect to database and update record with record_id using new_data
print(f"Record {record_id} updated in database.") # Side effect: printing
# No explicit return statement
The update_database_record function's primary purpose is to modify the database (a side effect). It also prints a confirmation message (another side effect). Since its main goal isn't to return a computed value, it implicitly returns None. Understanding the relationship between side effects and implicit returns helps clarify why certain functions in Python are designed to return None implicitly.
Implicit Returns in List Comprehensions and Generator Expressions
List comprehensions and generator expressions in Python, while not functions in the traditional sense, also exhibit behavior related to implicit "returns." List comprehensions create new lists based on existing iterables, and generator expressions create iterators that yield values on demand. These constructs implicitly "return" sequences of values, although they don't use the return keyword in their syntax.
Example of a list comprehension that implicitly "returns" a list:
squares = [x**2 for x in range(5)] # Implicitly creates and returns a list
print(squares) # Output: [0, 1, 4, 9, 16]
Similarly, a generator expression implicitly "returns" a generator:
square_generator = (x**2 for x in range(5)) # Implicitly creates and returns a generator
for square in square_generator:
print(square) # Iterates through the generated squares
While these are not functions with def and explicit return, understanding that they implicitly produce sequences of values is important. They are concise ways to create lists and iterators, and their implicit "return" behavior is a key part of their functionality in Python.
Implicit Returns and Python Decorators: Potential Issues
Python decorators are a powerful feature for modifying or enhancing functions. However, when working with decorators, it's important to be mindful of how decorators might affect function return values, including implicit returns. If a decorator is not carefully designed, it could inadvertently alter the return value of the decorated function, potentially leading to unexpected None returns or masking intended return values.
Consider a decorator that logs function execution time:
import time
def timer_decorator(func):
def wrapper(*args, **kwargs):
start_time = time.time()
func(*args, **kwargs) # Call original function
end_time = time.time()
print(f"{func.__name__} executed in {end_time - start_time:.4f} seconds")
# Implicit return None from wrapper
return wrapper
@timer_decorator
def example_function():
time.sleep(0.1)
result = example_function()
print(f"Return value of decorated function: {result}") # Output: Return value of decorated function: None
In this example, timer_decorator wraps example_function. The wrapper function inside the decorator calls the original function but does not explicitly return the result of func(). Consequently, wrapper implicitly returns None, and thus the decorated example_function also effectively returns None, even if the original example_function might have been intended to return something else (or even if it also implicitly returned None). When creating decorators, especially those intended to be generic, it's crucial to ensure they correctly handle and propagate the original function's return value if that is desired, often by explicitly returning the result of calling the original function from within the wrapper.
Best Practices for Working with Python Return Values
Always Consider the Return Value of Your Functions
A fundamental best practice in Python programming is to always consciously consider the intended return value of your functions. Before writing a function, think about whether it needs to produce a value to be used elsewhere in your code. If the function's purpose is to compute and provide a result, ensure it has an explicit return statement to send that value back to the caller. If the function's primary purpose is to perform actions or side effects without needing to return a specific value, explicitly consider whether an implicit None return is acceptable or if explicitly stating return None would improve clarity.
Being mindful of function return values from the outset helps prevent errors, enhances code readability, and contributes to better overall program design. It's a key aspect of writing robust and maintainable Python code.
Documenting Return Values: Making Implicit Returns Explicit in Documentation
Even when functions implicitly return None, it's good practice to document this behavior in the function's docstring. Clearly stating in the docstring that a function returns None (or returns no value, which implicitly means None) makes the function's behavior explicit in its documentation, even if it's implicit in its code. This is especially helpful for functions that are primarily used for their side effects.
Example of documenting an implicit None return:
def print_report(data):
"""
Prints a formatted report based on the provided data.
This function prints the report to the console and does not return any value (implicitly returns None).
Args:
data: A dictionary containing report data.
"""
# Code to format and print the report
print("Report generated...")
# Implicit return None
print_report({"items": 10, "errors": 2})
By explicitly mentioning in the docstring that the function implicitly returns None, you make it clearer to users of the function what to expect in terms of return values, even if they don't delve into the function's code.
Testing Functions for Expected Return Values: Including 'None'
When writing unit tests for Python functions, it's essential to test not only for expected non- None return values but also to explicitly test for None returns when they are expected or possible. This ensures that your functions behave as intended in all scenarios, including those where they are designed to implicitly return None.
Using Python's unittest framework or similar testing tools, you can write assertions to check for None returns using methods like assertEqual with None or assertIsNone.
Example test case using unittest:
import unittest
def function_that_might_return_none(value):
if value < 0:
return "Negative"
# Implicit return None for non-negative values
class TestFunctionReturns(unittest.TestCase):
def test_returns_string_for_negative(self):
self.assertEqual(function_that_might_return_none(-5), "Negative")
def test_returns_none_for_positive(self):
self.assertIsNone(function_that_might_return_none(5))
if __name__ == '__main__':
unittest.main()
Including tests that specifically check for None returns ensures that your functions are robust and behave predictably in all defined cases, including scenarios involving implicit returns.
Conclusion: Mastering Python Implicit Return Values for Cleaner Code
Key Takeaways: Understanding and Utilizing Implicit Returns Effectively
Mastering Python implicit return values is crucial for writing cleaner, more understandable, and less error-prone Python code. The key takeaways are:
- Implicit returns are a core feature of Python: Functions without explicit
returnstatements implicitly returnNone. Noneis Python's default implicit return value: It represents the absence of a value and is a distinct object in Python.- Explicit returns enhance readability: While implicit returns are valid, explicit
returnstatements, evenreturn None, often improve code clarity. - Be mindful of side effects: Functions focused on side effects may naturally lead to implicit
Nonereturns, but document this behavior. - Test for
Nonereturns: Include tests specifically to verify expectedNonereturn values to ensure function correctness. - Use
is Nonefor checking: Always useis Noneoris not Noneto check forNonevalues for object identity comparison.
By understanding and effectively utilizing implicit returns, while also prioritizing explicit returns and clear documentation, you can write more robust and maintainable Python code.
Further Learning: Resources for Advanced Python Concepts
To deepen your understanding of Python functions and related advanced concepts, consider exploring the following resources:
- Python Documentation on Functions: The official Python documentation provides comprehensive details on function definition, parameters, return values, and more.
- PEP 8 Style Guide for Python Code: Familiarize yourself with PEP 8 guidelines, which offer best practices for Python code style, including recommendations related to function design and clarity.
- Books on Advanced Python Programming: Explore books like "Fluent Python" by Luciano Ramalho or "Effective Python" by Brett Slatkin, which cover advanced Python concepts, including function design, decorators, and best practices in detail.
- Online Courses on Python Best Practices: Platforms like Coursera, edX, and Udemy offer courses on advanced Python programming, often covering topics like function design, debugging, and testing, which are directly relevant to understanding and mastering Python return values.
By continually learning and practicing, you can solidify your understanding of Python functions and write increasingly sophisticated and effective Python programs.
Frequently Asked Questions
What are Python implicit return values, and when do they occur?
Implicit return values in Python are the values returned by a function when it doesn't explicitly use the return statement. In such cases, the function implicitly returns None.
How can I identify if a Python function is using an implicit return?
The easiest way is to check if the function contains a return statement. If it doesn't, or if the return statement is without a value, it likely relies on an implicit return of None.
Does relying on implicit returns in Python affect code readability or maintainability?
Yes, relying heavily on implicit returns can sometimes reduce code readability. Explicitly returning None may be clearer and improve maintainability, especially in larger projects.
Are there situations where using implicit returns in Python is considered acceptable or even preferable?
In very simple functions with a single, obvious purpose, relying on the implicit return of None might be acceptable. However, it's generally better to be explicit for code clarity and to avoid potential confusion.
How can I handle unexpected None values resulting from unintended implicit returns in my Python code?
Use debugging tools and carefully examine the function's logic to identify the missing or incorrect return statements. Add explicit return statements, even for None, to ensure the function's behavior is predictable and avoids unexpected None returns.
Final Reflection: Embracing the Void in Python
The exploration of Python functions that seemingly return nothing, yet inherently possess implicit return values, reveals a fundamental truth about programming: even absence can be meaningful. Understanding this nuance is not just about mastering Python syntax; it's about appreciating the subtle elegance and underlying logic that governs code execution.
The concept of implicit returns has profoundly shaped my understanding of code clarity and efficiency. It highlights the importance of being deliberate in our programming choices, recognizing that even the omission of a 'return' statement has consequences. Simplicity is the ultimate sophistication.
- Leonardo da Vinci. This quote resonates deeply, reminding us that true mastery lies in understanding the inherent simplicity, even in seemingly complex concepts like implicit returns.
Now, as you continue your journey in Python and beyond, I urge you to reflect on the power of understanding the unseen. Embrace the void, explore the implicit, and strive for clarity in every line of code you write. Let this knowledge empower you to create more efficient, elegant, and ultimately, more meaningful programs.
Unleash Your Python Power: Code with Confidence!
Thanks for diving into the world of implicit returns in Python! Now that you understand how functions can sometimes return None without explicitly saying so, it's time to put your knowledge into action and truly master this concept.
Here's what you can do next:
- Dive Deep: Experiment with altering functions: to see how different code paths affect the return value. Try adding conditional statements or loops that might prevent the return statement from being reached.
- Share your newfound wisdom: Spread the word about implicit returns by sharing this article with your fellow Python enthusiasts and get them thinking about their own code!
- Tackle a real-world project: Implement a function in a personal project or coding challenge, focusing on designing functions that make the implicit return behavior explicit or more understandable.
Ready to write cleaner, more robust Python code? How will you leverage your new understanding of implicit returns to improve your future projects?
