There is one basic difference in python language’s basic syntax when it comes to the different modes of coding. While in the interactive programming mode you can straightaway add the codes following the basic syntax of quotes and brackets, however, in script mode you need to add a .py extension at the end of the statement.