When was python invented?
in 1991
uses DICT
Mapping Type
definition of Python Indentation
Indentation refers to the spaces at the beginning of a code line.
What are variables
Variables are containers for storing data values.
constructs an integer number from an integer literal, a float literal (by removing all decimals), or a string literal (providing the string represents a whole number)
int()
Who invented Python
Guido van Rossum
Uses BOOL
Boolean Type
How many spaces is it common to make when you are programing
The number of spaces is up to you as a programmer, the most common use is four, but it has to be at least one.
How do you create a variable?
Python has no command for declaring a variable.
A variable is created the moment you first assign a value to it.
constructs a float number from an integer literal, a float literal or a string literal (providing the string represents a float or an integer)
float()
Where was python invented?
The Netherlands
Uses BYTES, BYTEARRAY, MEMORYVIEW
Binary Types:
desfinition of Python Variables
In Python, variables are created when you assign a value to it
Casting a variable
If you want to specify the data type of a variable, this can be done with casting.
constructs a string from a wide variety of data types, including strings, integer literals and float literals
str()
How did Van Rossum got the name python?
he needed a name that was short, unique, and slightly mysterious
Uses NoneType
None Type:
Definition of Comments in python
Python has commenting capability for the purpose of in-code documentation.
How can you get the data type?
You can get the data type of a variable with the type() function.
Example
function, you output multiple variables, separated by a comma
print()
What is python?
A programing language
Uses INT, FLOAT, COMPLEX
Numeric Types
Python will give you what you skip the indentation
Python will give you an error if you skip the indentation
What are variable names?
Variable names are case-sensitive.
You can also use what symbol to output multiple variables:
+