Hello coders, Today we will learn to print Hello world,How to use comments in python ,Escape character,How to live a line,\n,\t,\r,Finally we will go through some practical question. Printing in Python print("hello world") Run an Online python compiler Here and test it. Not only hello world but you can print any text in python console use print keyword. print("any text here") Printing Hello World In Python Comments in Python | why we need comments Suppose you are writing a Python program which is very vast.You can't remember why you have used that piece of code.Here comes the use of comment. Or suppose you have to present this code to a non technical person then you can use comments to specify why you have written that piece of code. Comments are not executed by compiler. ''' your comments go here''' Use of comment --- '' Below code is used to print hello world''...
Comments
Post a Comment