In Python, void is not a specific keyWord or type like in some other programming languages. Instead, when you want to define a function that does not return a value, you simply define it without a return statement or use return without a value. Such a function is often referred to as returning None by default. For example:
<code class="language-python">def my_function():print("This function does not return anything.")
</code>
Here, my_function() executes its code but does not return a value.
Copyright © 2026 eLLeNow.com All Rights Reserved.