What will be the output of the following code.
print(“Welcome to the first program in python”)
print(“Learing Python is Fun”) in computer
ANYONE WHO KNOWS PYTHON PLEASE HELP ME
Answers
Answer:
Welcome to the first program in python
Learning Python is Fun
Explanation:
there is a default indentation after print statement so the remaining code goes on the next line after that.
Answer:
Welcome to the first program in python
Learning Python is Fun
Explanation:
print() is a built-in function in python which returns the arguments passed through it.it simply displays anything quoted in double quotes and executes the operation embedded into it.
for example:
print("My name is xyz")
Op:My name is xyz
↑In this example, print () function has just displayed the arguments passed through it...
print("sum="+(2+3))
Op:sum=5
↑However,in this print() function not only displayed the arguments but also returned the value after operation...
Some additional information:
★python is a simple but powerful language...
★Unlike java and C++, python code are short, modular and easy for beginners...