python (linuxor python (linuxor :\>python (in windowslisting hello world print("hello world"hello world print("hello % simulation can be done using % ("world""python")hello worldsimulation can be done using python running python files we can also save the code in python file with extension py'which can be run from python shell for examplelet file 'hello pyis saved in the folder name as 'pythoncodesat cdrive content of the 'hello pyis shown in listing '#in the file is used for comments (which increases the readability of the code)and has no effect in the execution of the code to run the 'hello py'we need to locate the folder 'pythoncodes(where we saved the hello py fileand then execute the file as shown in listing note that python codes work on indentations each block of code is defined by the line indentation (or spacesany wrong space will result in the error which can be seen by uncommenting the line listing listing hello py hello pyprints "hello worldsave this file to any location :\>pythoncodes print("hello world" #following line will be error because of extra space in the beginning print("hello world with spaces is error"error listing run hello py python hello py hello world notesince this method stores the code which can be used latertherefore this method is used throughout the tutorial please read the comments in the listings to understand the codes completely variables variables are used to store some data as shown in listing heretwo variables and are defined in line and respectivewhich store the values and respectively then various operations are performed on those variables basics