Skip to content Skip to sidebar Skip to footer
Showing posts with the label Return

Why Does My Code Not Return Anything

fairly new to programming and trying to learn Python at the moment. I have this code and I don'… Read more Why Does My Code Not Return Anything

Returning Lists Of Instances Makes No Difference? And What About Performance?

I have just realised that for a specific module in my programme, return or not a list of instances … Read more Returning Lists Of Instances Makes No Difference? And What About Performance?

My Function Returns "none"

I am new to Python and I was trying to solve this exercise, but keep getting 'None' output.… Read more My Function Returns "none"

How To Print Statement After Return In Function?

Here is the code as I currently have it: def F(n): t=time.time() if n==0: return (0… Read more How To Print Statement After Return In Function?

How To Get A Single Output From A Function With Multiple Outputs?

I have the following simple function: def divide(x, y): quotient = x/y remainder = x % y … Read more How To Get A Single Output From A Function With Multiple Outputs?

How To Return A String Without Quotes Python 3

I've got to write a single-input module that can convert decimals to Bukiyip (some ancient lang… Read more How To Return A String Without Quotes Python 3

Python3 Exec, Why Returns None?

When the code below this text, and returns the result None why? with open('exx.py', 'rb… Read more Python3 Exec, Why Returns None?

What Is This "and" Statement Actually Doing In The Return?

I am trying to get a better understanding of the following python code and why the author has used … Read more What Is This "and" Statement Actually Doing In The Return?