- 4
What's the output of the code
Print ("hello"); Print ("sololearn")
42 Antworten
+ 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.
+ 12
NameError: name 'Print' is not defined
+ 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! 😉
+ 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
+ 3
李立威 on phone, the automatic spell checker capitalizes the first letter of a line automatically. I think it's just the phone.
+ 3
SAI VIDYA SAGAR RAVURI semicolons exist in python and are perfectly valid.
+ 2
'P' in the print keyword cannot be capital so the compiler will give you an error saying
Print is not defined
+ 2
"helloSololearn" IMHO 😴
+ 1
NameError , 'Print' is not defined
This is because p is upper !
+ 1
in Print p would be small
0
The code I have written is correct there is no mistake in it can anyone tell the solution to it
0
You are almost near
0
Noo
0
Can anyone
0
It's the basic
0
Yes that's right 👍👍👍
0
Superb
0
Can you explain it
0
Yes it's true
But can you explain
How the output is
hello
sololearn
0
Can you explain the output how it comes