Write the output of the following: print('Hello, world!',end=" ");print("H") a. Hello world H b. Hello, world! H c. Hello world d. Error
Answers
Answered by
0
Answer:
"Hello,World!"
Explanation:
this is the answer
Answered by
1
The answer is d) Error.
Explanation: There are two print statements in the above program. The first print statement will print Hello World! The End keyword is used for printing the next statement in the same line. Hence, the program should give the output of Hello World! H. But the problem is with semicolons. The above program follows the syntax of python. In python, we do not add semicolons to terminate the print statement. So, the execution of the above statements will produce an error.
Similar questions