Que tiene de diferencia? ESPAÑOL | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Que tiene de diferencia? ESPAÑOL

Entre >>> print ('Hello Word') y >>>"Hello Word"

8th Jun 2017, 12:40 AM
ToBy MoRel
ToBy MoRel - avatar
2 Answers
+ 2
O segundo só functiona quando estás no interpretador interactivo do Python. EDITED: The second case will only work when you are running python interactivelly.
8th Jun 2017, 1:00 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 1
"print" se usa para mostrar texto en la pantalla, al usar >>>"Hola Mundo" sin "print" solo te mostrara el texto estando en la interprete pero no en un script..
15th May 2018, 6:05 PM
Ian Arad
Ian Arad - avatar