data-types.org
changeset 91 eb15f55e4689
child 92 fa26bdda8f32
equal deleted inserted replaced
90:314a711c042f 91:eb15f55e4689
       
     1 * Data Types
       
     2 *** Outline
       
     3 ***** Introduction
       
     4 ******* What are we going to do?
       
     5 ******* How are we going to do?
       
     6 ******* Arsenal Required
       
     7 ********* None
       
     8 *** Script
       
     9     Welcome friends. 
       
    10     
       
    11     In this tutorial we shall look at data types available in Python and 
       
    12     how to perform simple Input and Output operations. 
       
    13     for dealing with 'Numbers' we have: int, float, complex
       
    14     'Strings' are there for handling Text content.
       
    15     For conditional statements 'Booleans' are supported.
       
    16     
       
    17     Lets start by covering one by one, firstly 'numbers'
       
    18     All 'whole numbers' irrespective of how big they are, are of 'int'
       
    19     data type
       
    20     Lets get started by opening IPython interpreter. Now we will create
       
    21     some variables say:
       
    22     a = 13
       
    23     print a
       
    24 
       
    25     To check the data type of any variable Python provides 'type' function
       
    26     type(a)
       
    27     
       
    28     b = 999999999999
       
    29     print b
       
    30     
       
    31     And 
       
    32 
       
    33     Thus we come to the end of this tutorial on introduction of Data types in
       
    34     Python. In this tutorial we have learnt what are supported data types, 
       
    35     supported operations and performing simple IO operations in Python.
       
    36 
       
    37 *** Notes