how do I print the hi | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how do I print the hi

28th Jun 2016, 5:17 AM
Ali Waqif
Ali Waqif - avatar
4 Answers
+ 2
print('hi')
28th Jun 2016, 5:27 AM
Pyer
Pyer - avatar
+ 1
@Johannes: this would print the variable hi while it doesnt need to be a string. it could also be a number or List or...
28th Jun 2016, 7:54 AM
Loeschzwerg
0
print "hi" in Python 2x print ("hi") in Python 3x if you're passing it as a string
29th Jun 2016, 5:05 AM
Aquib Javed Khan
Aquib Javed Khan - avatar
- 2
print(hi)
28th Jun 2016, 7:42 AM
Johannes Schmidt