To print a statement in Python one has to use only Print Function:
Syntax of Print function is:
print (‘Your Text Goes Here’)
Or
print (“Your Text Goes Here”)
Note: A few extra spaces between the print function and the starting brace will not generate error
Hence this Hello World program will only contain one line
print ('Hello World!')
Output
Hello World!
Hello World!
No comments:
Post a Comment