0
Please i don't understand how the printing works?
I was instructed to type print hi i tried but to no avail
2 odpowiedzi
+ 1
print ("hi") or print ('hi')
It should work
+ 1
Ignore >>> in playground.
Valid examples:
print("Hello world!")
print('Hello world!")
Was the problem on one of these?:
Invalid examples:
>>>print("Hello world!")
#Error because >>> in beginning of line.
Print("Hello world!")
#Error because Print and print isn't the same.
PRINT("Hello world!")
#Error because PRINT and print isn't the same.
pritn("Hello world!")
#Error because pritn and print isn't the same.
print("Hello world!')
#Error because used pair of string quotes doesn't match.
print("Hello world!")
#Error because 2 spaces in the beginning of line.