What is syntax?
- Syntax is the arrangement of words in a specific order to create sentences in Python Programming.
- If you change the position of even one word then the code will give you an error
- Python Syntax is like English grammar
Example:
Input:
print("Hello World")
a="This is my first code"
print(a)
Output:
Hello World
This is my first code
Previous (Mastering Python: A Comprehensive Guide)
Next (Python Indentation)
Next (Python Indentation)
Comments
Post a Comment