Jupyter Notebooks have become the defacto standard for data scientists to show case their research and machine learning algorithms and work for presentation and sharing with others
Read tutorial ↗An item in a dictionary is a key/value pair. You can think of a dictionary as an associative array (known in some other languages as an "unordered map," "hash table," or "hash"). K
Read tutorial ↗Python for statement repeats execution of a statement, or block of statements, controlled by an iterable expression. The statement or statements that make up the loop body execute
Read tutorial ↗Python while statement repeats execution of a statement or block of statements, until the loop condition is true. Once the loop body finishes executing, Python evaluates the loop c
Read tutorial ↗Often, you need to execute some statements only when some condition is true. Or in some cases you would need to execure different blocks of code based on a condition. The compound
Read tutorial ↗Python with statement is used when you want to execute a block of code based on another operation. For example you need to open a file, for manipulating the file, then close it aft
Read tutorial ↗Python String objects (byte strings, as well as text, AKA Unicode, ones) are immutable: attempting to rebind or delete an item or slice of a string will raise an exception. The ite
Read tutorial ↗A Python list is a mutable ordered sequence of items. The items of a list are arbitrary objects and may be of different types. To denote a list, use a series of expressions (the it
Read tutorial ↗The first decision you need to make is which version to download. The Python 2.7 or the Python 3.x. If you are a beginner and you are just starting to learn Python, then you should
Read tutorial ↗Python has a 'with' statement that wraps the execution of a block, calling code on the entrance and exit from the block. Some language have a construct that looks like this:
Read tutorial ↗You can use exceptions to provide a 'structured goto' that even works across function calls. Many feel that exceptions can conveniently emulate all reasonable uses of the 'go' or '
Read tutorial ↗The details of Python memory management depend on the implementation. The standard C implementation of Python uses reference counting to detect inaccessible objects, and another me
Read tutorial ↗