Followers

Latest techys

Part1- Python Fundamentals | Start from the basics

    


1. Introduction

    You must have heard the term IPO-Input, Process, Output. Most (in fact, nearly all) daily life and computer actions are governed by IPO cycle. That is, there is certain Input, certain kind of Processing and an Output.

    Do you know that programs make IPO cycle happen?

    A program is a set of instructions that govern the processing. In other words, a program forms the base for processing.

    Here, we shall be talking about all basic elements that a Python program can contain. You'll be learning about Python's basics like character set, tokens, expressions, statements, simple input and output etc. 

    2. Python Character Set

    Character set is a set of valid characters that a language  can recognise. A character represents any letter, digit or any other symbol. Python supports Unicode encoding standard. It means that Python has following character set:

  • Letters: A-Z, a-z
  • Digits: 0-9
  • Special Characters: space  +  -  *   /   ( )  { }  [ ]  //  =  !=  ==  .  '  "  '''  ,  ;  :  %  !  
  • White Spaces: Blank spaces, tabs(↹), carriage return(↵), new line, form feed
  • Other Characters: Python can process all ASCII & UNICODE characters as part of data or                                         literals.
    3. Tokens
    Individual words & punctuation marks are called tokens. These are also called Lexical units or Lexical elements. They are the smallest individual units in a program.                      



  • Python has following tokens:-
  1. Keywords
  2. Identifiers
  3. Literals
  4. Operators
  5. Punctuators
We shall learn about these in the next article☺



                          


                            






    



No comments