Page 80 - Touchcode_C7_Flipbook
P. 80

(-------------Sorted sub-array----------------------------------------------------------------------------------------)

                               3                       4                       8                        12

                  GETTING USED TO SYNTAX

                  Python is a high  level object-oriented  programming language. It is a general purpose
                  language with interactive features. Python is open source software and is founded by Guido
                  Van Rossum in 1991. Python is extensively used in:

                      Web Development
                      GUI Application Development
                      Data Analysis

                      Software Development
                      Scientific Applications



                                           Coding fact

                    Guido Van Rossum developed Python, one of the most popular coding languages
                    used by programmers around the world.





                  VARIABLES AND DATA TYPES
                  Variable is a name given to a location in the memory, to store values or data.  Usually

                  variables are used to hold one or more values, result of calculations, etc. In Python, when a
                  variable is created it assigns a space to a variable in the memory. You can change the value
                  of the variable assigned when the program is running.

                  Variables contain the values on which the operations are performed. Every variable needs
                  to be assigned to a specific data type to make it accessible for the computer.

                  Data type  identifies  the type  of  data which  the  declared  variable can  hold.  It  helps  the

                  computer to understand what operations need to be performed on the declared variables.
                  Python has several in-built data types.

                  The three basic data types in Python are:
                      String (str)

                          It represents alphanumeric characters and stores sequence of characters.
                         It is used for the combination of any character which appears on keyboard (letters,
                         numbers, symbols).
                       Characters are enclosed in either single quotes or double quotes or triple quotes.

                       ‘+’ symbol is used to join two or more than two strings together.


                   78     Touchcode-VII
   75   76   77   78   79   80   81   82   83   84   85