0
Why do we ommit lines when writing codes in python? Thanks.
4 odpowiedzi
+ 4
You don't have to omit lines in Python, but you can, in order to make your code more readable.
+ 2
What do you mean by "omitting lines"? Can you give an example of that?
+ 1
For instance:
1. # Program to add two numbers
2.
3. num1 = 6
4. num2 = 5
5. print(num1 + num2)
6.
7. # output is 11.
Why do we ommit line 2 and line 6?
+ 1
Read also what PEP8 (python code styling guidelines) has to say about blank lines
https://www.python.org/dev/peps/pep-0008/#blank-lines