FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What will the output be from the following code?print("Hello world!world!")
A
Hello world! Hello world!
B
Hello world!Hello world!
C
SyntaxError
D
Hello world!
Explanation: 

Detailed explanation-1: -If we write : print(“hello world! nhello world! nhello world! n”), it should print hello world in 3 separate line.

Detailed explanation-2: -A “Hello, world!” program is a computer program that outputs or displays “Hello, world!” to a user. Being a very simple program in most programming languages, it is often used to illustrate the basic syntax of a programming language for a working program, and as such is often the very first program people write.

Detailed explanation-3: -Use the “print” function to print the line “Hello, World!". print("Goodbye, World!") print("Hello, World!") test output contains("Hello, World!") success msg(’Great job!’) Join over a million other learners and get started learning Python for data science today!

Detailed explanation-4: -Print Hello World n Times ") tot = int(input()) for i in range(tot): print("Hello World! “)

There is 1 question to complete.