'Defining function prints twice in Python/JupterNotebook

I have this code:

def say_hello(x):
    print(x)
say_hello('Hello World')

Output:

'Hello World'
'Hello World'

Why does it print twice in Jupyter notebook, but only once in InteliJ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source