Python: A beginner's guide to Learning the basics of Python Programming by James Patterson

Python: A beginner's guide to Learning the basics of Python Programming by James Patterson

Author:James Patterson
Language: eng
Format: azw3, mobi, epub, pdf
Published: 2016-03-02T16:00:00+00:00


CHAPTER 11: IF Statement

Earlier, we had mentioned in passing about the special place indentation has in the Python language. Unlike other languages such as Java and C++, Python uses the indent to determine a block of code. This pseudocode demonstrates this:

This is a line of code.

This is another line of code

This code, on the other hand, is part of a code block.

This is also a part of a code block.

Unfortunately, this code is no longer part of a code block.

But this code is the start of a new code block.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.