Home | | Computer Science 12th Std | Indentation

Python - Indentation | 12th Computer Science : Chapter 5 : Core Python : Python Variables and Operators

Chapter: 12th Computer Science : Chapter 5 : Core Python : Python Variables and Operators

Indentation

Python uses whitespace such as spaces and tabs to define program blocks.

Indentation

Python uses whitespace such as spaces and tabs to define program blocks whereas other languages like C, C++, java use curly braces { } to indicate blocks of codes for class, functions or body of the loops and block of selection command. The number of whitespaces (spaces and tabs) in the indentation is not fixed, but all statements within the block must be indented with same amount spaces.

Tags : Python , 12th Computer Science : Chapter 5 : Core Python : Python Variables and Operators
Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail
12th Computer Science : Chapter 5 : Core Python : Python Variables and Operators : Indentation | Python


Privacy Policy, Terms and Conditions, DMCA Policy and Compliant

Copyright © 2018-2024 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.