filmov
tv
Lesson 2 Python Syntax , Comments and variables

Показать описание
This is my second lesson not on Python Programming. Today I learnt About Python Syntax, Comments and variables. Please watch the video and make your comments.
HERE ARE MY LESSON NOTES:
Syntax has to do with the set of rules governing the language. For instance in English Language, it is expected that every sentence should begin with an Capital Letter(Uppercase), so it is a syntax error in English to begin a sentence in lowercase, etc. Every language has its syntax and in this lesson, we will look at the syntax in Python Programming.
Python Indentation: In some other languages, indentation is simply for clarity and readability, but in python programming, indentation is used to indicate a block of code(very important). You are at liberty to create a lot of spaces but every Line of Code (LOC) in that block should be at the same level.
Python Variables: variables are created in python the moment you assign a value to it. In some other languages, you need to declare variables first before assigning a value.
Python Comments: Use # to insert a comment in python. Remember that comments are non-executable lines of codes.