-2

print(print("Hello World!"))

and the output is :

Hello World! None

Disni
  • 1
  • 1
  • you have two print commands here, the second one prints the output of the first print command, which is `None`, i.e. the print command only prints to the stdout and returns `None` – Amir Feb 06 '22 at 09:09
  • 1
    Please research your question before asking - google + `python print prints None site:stackoverflow.com` returns a plethora of fitting results. – Patrick Artner Feb 06 '22 at 09:52

1 Answers1

0

The print function has no return value, i.e. it returns None.

(What did you expect to get with the second print?)

Manfred
  • 2,269
  • 1
  • 5
  • 14