1 / 8

Components of a Python Program

This presentation informs you on the Python programme components by discussing Reserved words in Python, Comments in Python, Statements in Python and Blocks or Suites and Indentation in Python.

Download Presentation

Components of a Python Program

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Components ofPython Program Swipe

  2. Components of PythonProgram Components of any Python Program are asbelow:- Literals Suite Constants Comments Identifiers Python Statement Variables Expression reserved words Blocks and Indentations

  3. Reserved words inPython Words with special meaning and task associated with it. There are total 35 reserved words inpython. All reserved words contains only alphabet characters. All keywords contains only lowercaseletters.

  4. Reserved words inPython There are two types of reservedwords:- Keywords Reserved words associated with some functionality. Apart from reserved literals, all reserved words arekeywords. ReservedLiterals True, False,None

  5. Comments inPython To create a single line comment we use#. Multiline comments are written inside triple quotation. Triple quotations are also used for writing the doctoring. Writing comments in python is a very good programming practice.

  6. Statements inPython Instructions written in the source code for execution are calledstatements. Different types of statements in pythonare:- AssignmentStatements Compound AssignmentStatements Conditionalstatements LoopStatements

  7. Blocks or Suites and Indentationin Python A combination of statements in python is called block or suites. In other programming languages like C, C++, Java, we use flower brackets to make a block inpython. We use whitespaces to make indentation and indentations are used to make block or suite inpython.

  8. Topics for nextPost Data Types in Python Mutable vs Immutable Data type inPython Stay Tunedwith

More Related