About 801,000 results
Open links in new tab
  1. python - What is the formal difference between "print" and "return ...

    Dec 11, 2017 · With print() you will display to standard output the value of param1, while with return you will send param1 to the caller. The two statements have a very different meaning, …

  2. Difference between returns and printing in python? [duplicate]

    The Point return is not a function. It is a control flow construct (like if else constructs). It is what lets you "take data with you between function calls". Break down print: gives the value to the …

  3. python - What is the purpose of the return statement? How is it ...

    What does the return statement do? How should it be used in Python? How does return differ from print? See also Often, people try to use print in a loop inside a function in order to see …

  4. python - How is returning the output of a function different from ...

    This function creates a dictionary, but it does not return something. However, since I added the print, the output of the function is shown when I run the function. What is the difference …

  5. What is the difference between __str__ and __repr__?

    In the Python shell (interactive interpreter), if you enter a variable at the >>> prompt and press RETURN, the interpreter displays the results of repr() implicitly called on that object.

  6. How to get the difference between two dictionaries in Python?

    Sep 28, 2015 · I have two dictionaries, and I need to find the difference between the two, which should give me both a key and a value. I have searched and found some addons/packages …

  7. The difference between ‘print’ and ‘return’ in Python

    Mar 20, 2018 · In python 3 print is a function that prints to the console. return is a type of statement that ends execution of a function and returns the specified value to whoever called …

  8. python - what's the actual difference between print and return

    Here is my code. I would like to the the value for each key from python dict. So when I use print in function it's working fine but when I use return in function it's just return any one value not ...

  9. Python - getting just the difference between strings

    Python - getting just the difference between strings Asked 8 years ago Modified 2 years, 8 months ago Viewed 43k times

  10. python - What is print (f"...") - Stack Overflow

    Jul 22, 2019 · I am reading through a python script that takes an input of XML files and outputs an XML file. However, I do not understand the printing syntax. Can someone please explain what …