Thursday 3 December 2015

Python Tutorial

      Why should I learn python?
      Install python on MAC OS
      How to check whether python installed or not?
      Hello World program
            Hello world application in sublime text editor
            Read username and welcome user in Python
      interactive command line
      Variables
            Boolean variables in Python
            Convert a string to boolean in Python
      Zen Of Python principles
      Operators
            Arithmetic Operators
                  Division (/) vs floored division (//) in Python
                  Use * as a string replication operator in Python
            Relational Operators
                  Understanding Numeric Comparisons in Python: How Integer and Floating-Point Equality Works
            Assignment operators
            Logical Operators
            Bitwise Operators
            Membership operators
            Identity operators
            Short circuit operators
            Multiple assignments
            Python do not have ++ (incremental), -- (decremental) operators
            Python: ternary operator
            Python: Membership operators: in, not in
      Strings
            Python: Get number of characters in a String
            Replace all the occurrences of sub string in the given string
            Change each word of string to title case
            Convert string to lower and upper case
            Insert variable value in a string
            Trim white spaces
            How to place single quotes in a string
            How to place double quotes in a string
            python: Escape \n (new line) character
            Escape special characters in python
            Formatted strings in Python
            Python: formatting strings
            Python: Define multi line strings
            TypeError: can only concatenate str (not "int") to str
            Concatenate int and string
            Split a string by space in Python
      comments
      if condition
            "Truthy" And "Falsey" values in Python
      while statement
      What values represent True
      for statement
      range function
      break statement
      continue statement
      loop exercises
      functions
            functions: return statement
            functions: Default Argument Values
            functions: Keyword arguments
            functions: Arbitrary number of arguments
            Python: Define nested function
      Lambda expressions
      Documentation strings
      lists
            Python: unpack the list to multiple variables
            Access last element of a list
            Access list elements using negative indexing
            List slicing: Select and manipulate the elements of a list
            Concatenate lists using + operator
            List replication using * operator in Python
            Iterate over the elements of a list using for loop in Python
            Length (or) number of elements in the list
            Modify element at specific index
            list: append an element
            list extend: append elements of given list
            insert: Insert an element at given position
            list remove: Remove an element
            Delete an element from a list using del statement
            list: pop: remove last element in the list
            list: clear all elements in the list
            list: index: Get index of element
            list: sort elements of list
            Sort a list but do not affect original one
            count: Count number of times element appears
            list: Reverse elements of list
            list: Copy elements of list
            in: Check for existence of element in the list
            list: del: delete elements
            Looping over lists
            Get list of numbers using range function
            Get minimum element from list of elements
            Get maximum element from list of elements
            Get sum of list of numbers
            List comprehensions
            Copy entire list
            in: check for existence of element
            not in: Check for non-existence of element in the list
      Two dimensional lists in Python
      Check list emptiness using if condition
      tuples
            Iterate over elements of a tuple
            Python: unpack the tuple to multiple variables
            Convert tuple to a list in Python
            Convert a list to tuple in Python
      Sets
      Find intersection and union of lists
      Dictionaries
            looping over dictionary
            Looping over a dictionary using keys
            Looping through the dictionary in the sorted order of keys
            Looping through all values in a dictionary
            Looping over the dictionary using items() method in Python
            List of dictionaries
            Dictionary in a dictionary
            List in a dictionary
            Check for existence of key in a dictionary using in operator in Python
            Check for existence of value in a dictionary using in operator in Python
            Python's setdefault(): A Shortcut for Adding Keys with Defaults
            Pretty print dictionary content in Python
      modules
            Executable statements in module
            import functions from module directly
            import module in other module
            Import multiple modules in one line in Python
      Command line arguments
      __pycache__ directory
      Compile all modules
      Primary secondary prompts
      get names of module
      Get names of built-in functions
      File handling
      Reading files
      Write data to file
      Append data to a file
      Get file object current position
      seek: Change file object position
      with : Predefined Clean-up Actions
      classes and objects
      built in class attributes
      Class methods in Python
      __init__ method
      Overloading __init__ method
      Class Vs Instance variables
      Destroy objects: Garbage collection
      Inheritance
      Multiple inheritance
      Python: Method overriding
      Get the doc string associated with a class
      __del()__ method
      Exceptions
            Handling Exceptions
            Raising Exceptions
            User defined exceptions
            finally clause
            Python: Print exception stack trace
            Convert a string to integer in Python
            Convert a string to float in Python
      global keyword
      Reading input
      Convert string to an integer
      Get current local encoding
      print on same line
      How to clear screen in python
      Get module name
      Get type of variable
      Generate random numbers
      Check whether an object is instance of class or not
      Get process and parent process ids
      __str__(): Print object using print method
      Python: What is None
      Python: pass keyword: execute nothing
      Python: iterators in python
      Python: Implement custom iterator
      Python: Generators, yield demo
      Python: Generator to produce infinite items
      Python: Generator expressions
      Python: assert statements
      Python: deep copy vs shallow copy
      Python: Working with namedtuple
      Python: Working with decorators
      visual studio code: How to change the python version?
      Effectively Combining Iterables with Zip function
      Iterate Over a Sequence with Indexes using enumerate method
      Data buffers in Python

Previous                                                 Next                                                 Home

No comments:

Post a Comment