Tutorial by Topics: le

$variable = 'value'; // Assign general variable $object->property = 'value'; // Assign an object property ClassName::$property = 'value'; // Assign a static class property $array[0] = 'value'; // Assign a value to an index of an array $array[] = 'value'; // Push an item at the end of an ar...
The SELECT statement is at the heart of most SQL queries. It defines what result set should be returned by the query, and is almost always used in conjunction with the FROM clause, which defines what part(s) of the database should be queried. SELECT [DISTINCT] [column1] [, [column2] ... ] F...
random.seed(a=None, version=2) (version is only avaiable for python 3.x) random.getstate() random.setstate(state) random.randint(a, b) random.randrange(stop) random.randrange(start, stop, step=1) random.choice(seq) random.shuffle(x, random=random.random) random.sample(population, k) ...
This topic illustrates how to avoid adding unwanted files (or file changes) in a Git repo. There are several ways (global or local .gitignore, .git/exclude, git update-index --assume-unchanged, and git update-index --skip-tree), but keep in mind Git is managing content, which means: ignoring actuall...
import module_name import module_name.submodule_name from module_name import * from module_name import submodule_name [, class_name, function_name, ...etc] from module_name import some_name as new_name from module_name.submodule_name import class_name [, function_name, ...etc] Importi...
global a, b, c nonlocal a, b x = something # binds x (x, y) = something # binds x and y x += something # binds x. Similarly for all other "op=" del x # binds x for x in something: # binds x with something as x: # binds x except Exception as ex: # binds ex inside block ...
When it comes to storing, reading, or communicating data, working with the files of an operating system is both necessary and easy with Python. Unlike other languages where file input and output requires complex reading and writing objects, Python simplifies the process only needing commands to open...
For full documentation including version-specific functionality, please check the official documentation. Types Defaults the json module will handle encoding and decoding of the below types by default: De-serialisation types: JSONPythonobjectdictarrayliststringstrnumber (int)intnumber (...
The HTML <table> element allows web authors to display tabular data (such as text, images, links, other tables, etc.) in a two dimensional table with rows and columns of cells. <table></table> <thead></thead> <tbody></tbody> <tfoot></tfoot&...
A key component of interactive web systems, input tags are HTML elements designed to take a specific form of input from users. Different types of input elements can regulate the data entered to fit a specified format and provide security to password entry. <input type="" name=&quo...
Python does common mathematical operators on its own, including integer and float division, multiplication, exponentiation, addition, and subtraction. The math module (included in all standard Python versions) offers expanded functionality like trigonometric functions, root operations, logarithms, a...
The HTML5 standards does not list the main element as a sectioning element.
The CREATE TABLE statement is used create a new table in the database. A table definition consists of a list of columns, their types, and any integrity constraints. CREATE TABLE tableName( [ColumnName1] [datatype1] [, [ColumnName2] [datatype2] ...] ) ParameterDetailstableNameThe name of the ...
ALTER command in SQL is used to modify column/constraint in a table ALTER TABLE [table_name] ADD [column_name] [datatype]
ls [OPTION]... [FILE]... OptionDescription-a, --allList all entries including ones that start with a dot-A, --almost-allList all entries excluding . and ..-cSort files by change time-d, --directoryList directory entries-h, --human-readableShow sizes in human readable format (i.e. K, M)-HSame...

Page 2 of 68