What's the output of the code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 4

What's the output of the code

Print ("hello"); Print ("sololearn")

20th Jul 2020, 8:11 AM
Manohar Reddy🇮🇳
Manohar Reddy🇮🇳 - avatar
38 Answers
+ 13
Manohar Reddy , what was the purpose of your question? you could easily have tested your code in playground yourself. If errors then appear, it is relatively easy to find and fix them.
20th Jul 2020, 11:10 AM
Lothar
Lothar - avatar
+ 12
NameError: name 'Print' is not defined
20th Jul 2020, 8:12 AM
李立威
+ 5
Python supports the use of semi-colons to end a statement, so this code is perfectly valid. It is like I you had written : print("hello") print("Sololearn") I think you know what's the output now! 😉
20th Jul 2020, 8:13 AM
Théophile
Théophile - avatar
+ 4
Your code is valid if you don't capitalize Print it will output an error in your case just because you did a capital P, but other than that it's valid
20th Jul 2020, 8:33 AM
Fakhri Mrabet
Fakhri Mrabet - avatar
+ 3
李立威 on phone, the automatic spell checker capitalizes the first letter of a line automatically. I think it's just the phone.
20th Jul 2020, 8:16 AM
Théophile
Théophile - avatar
+ 3
SAI VIDYA SAGAR RAVURI semicolons exist in python and are perfectly valid.
20th Jul 2020, 8:16 AM
Théophile
Théophile - avatar
+ 2
'P' in the print keyword cannot be capital so the compiler will give you an error saying Print is not defined
20th Jul 2020, 5:22 PM
Sam God (Sam)
Sam God (Sam) - avatar
+ 2
"helloSololearn" IMHO 😴
21st Jul 2020, 5:35 AM
Sanjay Kamath
Sanjay Kamath - avatar
+ 1
NameError , 'Print' is not defined This is because p is upper !
21st Jul 2020, 2:56 AM
__k_maaz__ [ INACTIVE ]
__k_maaz__ [ INACTIVE ] - avatar
+ 1
in Print p would be small
21st Jul 2020, 5:41 PM
Jayant Agarwal
Jayant Agarwal - avatar
0
The code I have written is correct there is no mistake in it can anyone tell the solution to it
20th Jul 2020, 8:21 AM
Manohar Reddy🇮🇳
Manohar Reddy🇮🇳 - avatar
0
You are almost near
20th Jul 2020, 8:23 AM
Manohar Reddy🇮🇳
Manohar Reddy🇮🇳 - avatar
0
Noo
20th Jul 2020, 8:25 AM
Manohar Reddy🇮🇳
Manohar Reddy🇮🇳 - avatar
0
Can anyone
20th Jul 2020, 8:27 AM
Manohar Reddy🇮🇳
Manohar Reddy🇮🇳 - avatar
0
It's the basic
20th Jul 2020, 8:27 AM
Manohar Reddy🇮🇳
Manohar Reddy🇮🇳 - avatar
0
Yes that's right 👍👍👍
20th Jul 2020, 8:29 AM
Manohar Reddy🇮🇳
Manohar Reddy🇮🇳 - avatar
0
Superb
20th Jul 2020, 8:29 AM
Manohar Reddy🇮🇳
Manohar Reddy🇮🇳 - avatar
0
Can you explain it
20th Jul 2020, 8:29 AM
Manohar Reddy🇮🇳
Manohar Reddy🇮🇳 - avatar
0
Yes it's true But can you explain How the output is hello sololearn
20th Jul 2020, 8:35 AM
Manohar Reddy🇮🇳
Manohar Reddy🇮🇳 - avatar
0
Can you explain the output how it comes
20th Jul 2020, 9:46 AM
Manohar Reddy🇮🇳
Manohar Reddy🇮🇳 - avatar