Question: Hey everyone! I'm working on a Python project and I wrote a function 
that I expect to return a value, but for some reason, it's returning None. 
Here's a simplified version of my code:

def my_function(x):
    if x > 10:
        return x * 2
    # Other logic here
Whenever I call my_function(5), it returns None. I know it's probably something 
simple that I'm overlooking. Can anyone help me figure out why this is 
happening?

Thanks in advance!



https://nifportugal.net/
_______________________________________________
Isbg mailing list -- isbg@python.org
To unsubscribe send an email to isbg-le...@python.org
https://mail.python.org/mailman3/lists/isbg.python.org/
Member address: arch...@mail-archive.com

Reply via email to