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

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?

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"

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?

Make A Program In Python That Calculates The Student's Gpa?

I am in need of assistance on a coding question in Python. I have to calculate a student’s GPA. Th… Read more Make A Program In Python That Calculates The Student's Gpa?

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?

How To Use Local Variable In A Function And Return It?

I am trying to create a script that sets a local variable, references it from a function, and can r… Read more How To Use Local Variable In A Function And Return It?

Python Threading Return Values

I am new to threading an I have existing application that I would like to make a little quicker usi… Read more Python Threading Return Values

Why Isn't This Code Returning These Lists? Does This Have To Do With Using 'return' Rather Than 'print'?

So this is my code, when I had everything set to 'print' things, the code worked, but now w… Read more Why Isn't This Code Returning These Lists? Does This Have To Do With Using 'return' Rather Than 'print'?