Origin of Python<\/figcaption><\/figure>\nThere is a whole story behind the name “Python”. The found of Python Mr. Guido van Rossum is a huge fan of a British movie called Monty Python’s Flying Circus<\/strong>. That is the sole reason why he went with the name Python. Now the question arises, is python easy? And the answer is, let’s find out.<\/p>\nIs Python Easy?<\/strong>
\nThe simple answer is YES! It is the simplest and easiest language in the whole world. Therefore, making it popular for the sole reason of being simple. Even if you are from noncomputer fields or technical background. You can start with Python easily. it’s so easy that even kids can learn python.<\/p>\nThe only way to define its simplicity is that “The Syntax is Easy<\/strong>“. But let me clarify this for you that, it’s not easier than any other programming language. Therefore, I never confused python with being an overall easy language. That is because concepts and logics are the same no matter which language we choose. Now let’s talk about the simple syntax of Python.<\/p>\nSyntax of Python<\/strong><\/h3>\nExecuting a simple message.<\/strong><\/h4>\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 print(“Hello, World!”)<\/strong>
\nThis is going to execute a command on CMD or no matter what software you are using to execute it on.
\nIndentation in Python is really important, unlike other languages. You cannot execute a successful code if you do not indent it properly. That is because it analyzes, what you are meaning to do. Here’s a simple if statement.<\/p>\nPython Indentation<\/strong><\/h3>\nif<\/span> 1 > 3:<\/strong>
\n\u00a0\u00a0print<\/span>(“Five is greater than two!”<\/span>)<\/strong>
\nIf you skip indentation, you will get an error.<\/p>\nPython Variables<\/strong><\/h4>\nThe great thing about python is that it automatically detects what is the type of variables. Simply put, there are no variable types on the surface, in python.
\na = 5<\/span><\/strong>
\nb = “Subscribe to PewDiePie”<\/span><\/strong><\/p>\nComments<\/strong><\/h4>\nThere are also comments used in Python. The Syntax of writing python is that it starts with ‘#’ hash. Therefore, the rest of the line will be considered as a comment.
\n