Machine Learning in Cloud

Machine Learning in Cloud

Home

Dictionary

Dictionaries and lists share the following characteristics: Both are mutable. Both are dynamic. They can grow and shrink as needed. Both can be nested. A list can contain another list. A dictionary can contain another dictionary. A dictionary can also contain a list, and vice versa. Dictionaries differ from lists primarily in how elements are

Frozenset

Python provides another built-in type called a frozenset. Frozensets are exactly the same as set in all aspects except that they are immutable. You can perform all operations similar to sets except change or modifying operations such as add() and update(). You can create a frozenset with frozenset(<iter>) method. Outputs: Frozensets are useful in situations

Set

Python has a built-in method called set. set type has the following characteristics Sets are a collection which is unordered and unindexed Set elements are unique. Duplicate elements are not allowed. A set itself may be mutable, but the elements within a set is immutable. You can create sets in two ways: using set method

Tuple

what are tuples? how to create them? when to use them? and tuple methods What are tuples? In Python, tuples are similar to lists except tuples are immutable. While lists are mutable and you can change/modify elements in a tuple after the tuple is created, but you cannot change the elements of a tuple once

List

List is one of the compound data types in Python. Lists can group together elements. A list is written as a comma-separated , elements (values or items) between square brackets[]. Lists might contain elements of different types, but usually the elements all have the same type. Python lists are: Lists can be empty Lists can

Multi-line Statements

A brief introduction to multi-line statements and usage. Python codes are merely just text, aka physical lines. Python compiles physical lines into logical lines then tokenise them. Physical line end with a physical newline character. Logical line end with a logical NEWLINE token. Physical newline vs logical newline Physical newlines are ignored in order to

Python Data Hierarchy

An introduction to main Python data hierarchy Note: This will be updated and linked to further content development A subset of the data types that are built into Python. Numbers We use numbers all the time. Numbers can either be integrals or non-integrals. Arithmetic operators and arithmetic built-in functions will return numbers. Numeric objects are

Python Keywords and Identifiers

This sections explains keywords (reserved words in Python) and identifiers (names given to variables, functions, classes, etc.). Python Keywords There are 35 keywords in Python 3.8.2. The number of keywords varies based on the Python version. Keywords are the reserved words in Python. Keyword cannot be used as a variable name, function name or any

Python Operators

Python operators are used to perform operations on variables and values. Python operators are as follow: Arithmetic operators Assignment operators Comparison operators Logical operators Identity operators Membership operators Bitwise operators Arithmetic operators Operator Name Example + Addition 2 + 2 – Subtraction 2 – 2 * Multiplication 2 * 2 / Division 2 / 2

How to Install Python?

Install and run Python code on your computer Update: screenshot are updated on 10 March 2020 Python can be installed in many different ways Downloading python installer from python.org/downloads​ Using Homebrew​ Python docker image​ Open source distributions ​Miniconda​ ​Anaconda​ This article is targeting beginners, so I will explain how to install Anaconda on your computer