Skip to content

Self explanatory practice notebooks for Python Fundamentals.

License

Notifications You must be signed in to change notification settings

ihapoorv/learn-Python

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

34 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Python Tutorial

This is not a comprehensive Python tutorial but instead is intended to highlight the parts of the language that will be most important for getting started.

Keep in mind

  • Python is very slow when written badly.
  • Translate C code into Python is often bad idea.
  • Pythonic solution sometimes result in drastic performance improvement.
  • Utilise libraries capabilities more than you skill.

How to get started?

This tutorial is written in Python version 3.7.x and uses Jupyter Notebook for implementation. I recommend installing Anaconda distribution, which already includes most of the libraries that are required for this tutorials.

Installation:

  1. Download Anaconda installer.
  2. Execute installer and complete the installation.
  3. Open Anaconda Command Prompt and execute the code.
  $ source activate base
  $ jupyter notebook

Get Notebook:

  1. Create a Github account if you don't already have one.
  2. Fork the learn-Python repository to your Github account.
  3. Clone the forked repository on your local machine.

Course Content

Module 1: Python Fundamental

Module 2: Built in Function

Module 3: String Manipulation

Module 4: Python Data Structure

Module 5: Class and Object

Module 6: Iterators/Generators/Decorators

Module 7: Python Comprehension

Module 8: System/OS Module

Module 9: File Handling

Module 10: HTTP Requests

Module 11: Web Scraping

Module 12: CSV Module

Module 13: Numpy Operation

Module 14: Pandas Fundamental

Module 15: Pandas Data Structure

Module 16: Pandas Visualisation

Module 17: MatplotLib Visualisation

Module 18: Scikit Learn - Machine Learning

Module 19: Thread/Subprocess

Module 20: Python Miscellaneous

Module 21: Python GUI

Module 22: Python SQL

Module 23: Error Handling

Module 24: Unit Testing

Module 25: Python Application

Module 26: Python Code Profiling

Python Cheat Sheet

Math

  • abs() : Returns absolute value of a number
  • divmod() : Returns quotient and remainder of integer division
  • max() : Returns the largest of the given arguments or items in an iterable
  • min() : Returns the smallest of the given arguments or items in an iterable
  • pow() : Raises a number to a power
  • round() : Rounds a floating-point value
  • sum() : Sums the items of an iterable

Type Conversion

  • ascii() : Returns a string containing a printable representation of an object
  • bin() : Converts an integer to a binary string
  • bool() : Converts an argument to a Boolean value
  • chr() : Returns string representation of character given by integer argument
  • complex() : Returns a complex number constructed from arguments
  • float() : Returns a floating-point object constructed from a number or string
  • hex() : Converts an integer to a hexadecimal string
  • int() : Returns an integer object constructed from a number or string
  • oct() : Converts an integer to an octal string
  • ord() : Returns integer representation of a character
  • repr() : Returns a string containing a printable representation of an object
  • str() : Returns a string version of an object
  • type() : Returns the type of an object or creates a new type object

Iterables and Iterators

  • all() : Returns True if all elements of an iterable are true
  • any() : Returns True if any elements of an iterable are true
  • enumerate() : Returns a list of tuples containing indices and values from an iterable
  • filter() : Filters elements from an iterable
  • iter() : Returns an iterator object
  • len() : Returns the length of an object
  • map() : Applies a function to every item of an iterable
  • next() : Retrieves the next item from an iterator
  • range() : Generates a range of integer values
  • reversed() : Returns a reverse iterator
  • slice() : Returns a slice object
  • sorted() : Returns a sorted list from an iterable
  • zip() : Creates an iterator that aggregates elements from iterables

Composite Data Type

  • bytearray() : Creates and returns an object of the bytearray class
  • bytes() : Creates and returns a bytes object (similar to bytearray, but immutable)
  • dict() : Creates a dict object
  • frozenset() : Creates a frozenset object
  • list() : Constructs a list object
  • object() : Returns a new featureless object
  • set() : Creates a set object
  • tuple() : Creates a tuple object

Classes, Attributes, and Inheritance

  • classmethod() : Returns a class method for a function
  • delattr() : Deletes an attribute from an object
  • getattr() : Returns the value of a named attribute of an object
  • hasattr() : Returns True if an object has a given attribute
  • isinstance() : Determines whether an object is an instance of a given class
  • issubclass() : Determines whether a class is a subclass of a given class
  • property() : Returns a property value of a class
  • setattr() : Sets the value of a named attribute of an object
  • super() : Returns a proxy object that delegates method calls to a parent or sibling class

Input/Output

  • format() : Converts a value to a formatted representation
  • input() : Reads input from the console
  • open() : Opens a file and returns a file object
  • print() : Prints to a text stream or the console

Variables, References, and Scope

  • dir() : Returns a list of names in current local scope or a list of object attributes
  • globals() : Returns a dictionary representing the current global symbol table
  • id() : Returns the identity of an object
  • locals() : Updates and returns a dictionary representing current local symbol table
  • vars() : Returns dict attribute for a module, class, or object

Miscellaneous

  • callable() : Returns True if object appears callable
  • compile() : Compiles source into a code or AST object
  • eval() : Evaluates a Python expression
  • exec() : Implements dynamic execution of Python code
  • hash() : Returns the hash value of an object
  • help() : Invokes the built-in help system
  • memoryview() : Returns a memory view object
  • staticmethod() : Returns a static method for a function
  • import() : Invoked by the import statement

Contribution

Happy to accept any pull requests if you want to add anything which can improve this tutorial.

About

Self explanatory practice notebooks for Python Fundamentals.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%