Day 3: Programming Constructs
I have started looking into the various Python programming constructs. It is pretty easy. There is no much hard and fast rules.
We can start executing the statements in Python command prompt only, as it is an interpreter one. Unlike Java, it does not have the job of compiling and running.
Also, there is no need of flower bracket or any other brackets. Just an indentation will do to specify the blocks of the code!
No need of terminating the statement by semicolon. We can keep writing the code.
We can import modules using variety of ways to use it in our program.
Python program extension is .py. There is no main method as we see in Java. It will start executing from the starting of the .py file.
We can start executing the statements in Python command prompt only, as it is an interpreter one. Unlike Java, it does not have the job of compiling and running.
Also, there is no need of flower bracket or any other brackets. Just an indentation will do to specify the blocks of the code!
No need of terminating the statement by semicolon. We can keep writing the code.
We can import modules using variety of ways to use it in our program.
Python program extension is .py. There is no main method as we see in Java. It will start executing from the starting of the .py file.
Comments
Post a Comment