Machine Learning Book Python : The Perfect Handbook For Building A Top-Notch Code In Scratch And Using Python Data Science Programming To Elevate Your Skills Out Of The Ordinary by Scratch Eric & Scratch Michael

Machine Learning Book Python : The Perfect Handbook For Building A Top-Notch Code In Scratch And Using Python Data Science Programming To Elevate Your Skills Out Of The Ordinary by Scratch Eric & Scratch Michael

Author:Scratch, Eric & Scratch, Michael [Scratch, Eric]
Language: eng
Format: epub
Published: 2020-12-11T16:00:00+00:00


White Spaces and Indentation

The python statements do not have an end of line delimiters such as the “;” used in languages like C or C++. When typing the statement “print “Hello World”, it does not require a “;” to mark its end. This also means that the blocks/statements of a python program are marked by means of spaces and indentation.

Therefore, in any given Python program, white spaces and indentation are extremely important components, and if used incorrectly, could cause errors.

Unlike other languages, white spaces are extremely important in python programming, and if used incorrectly, they could cause some serious errors preventing the execution of the program itself.

White spaces in the beginning mark different blocks of the program. Blocks are differentiated from one another based on indentation, with space before a statement denoting the beginning of a new block, and indent to end the block. In addition, each letter or word is separated using white spaces.

>>>>a = 5

>>>> a = 5

^ a= 5



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.