Important Definitions string Set of characters Day 2 ...
Intro to Scientific Computing Python Reference Sheet
Key: Python functions are in bold, sample placeholder text (where you would insert your own text) is in italics.
Day 2 - Data and Storage
index
Important Definitions
The position of an element
string
Set of characters
list
Collections of values- can be various data
types: integers,float,characters
dictionary
Data structure mapping a key to a related value
f string
Format a new string with a variable
int
Integers, such as 0, 1, 2, ...
float
Numbers in their decimal form, such as
0.0, 1.1, ...
Boolean variables
Binary variables, which can be either true or false
Complex number
A number expressed as a sum of a real part and an imaginary part
Functions/Operations
+
Addition
-
Subtraction
*
Multiplication
/
Division
//
Integer division
**
Exponent
%
Modulo Operator (Remainder)
==
Test if equal to
> >= < =something):
print(output) else:
print(output)
If/else statement that tests for two conditions and chooses outputs based on
if BOTH conditions in the input are true
if (input==something) or (input>=something):
print(output) else:
print(output)
If/else statement that tests for two conditions and chooses outputs based on if ONE OF TWO conditions in the input are
true
if (input==something): print(output)
elif (input ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- important definitions string set of characters day 2
- introduction to data science in python review
- python open file for modification
- python cheat sheet programming with mosh
- 243 29 sas macro programming for beginners
- common core state standards for english language arts
- schema name with periods sqlalchemy
- regular expressions the complete tutorial by jan goyvaerts
- title drop — drop variables or observations
- data wrangling a foundation for wrangling in r
Related searches
- definitions and synonyms of words
- types of characters in novel
- types of characters in literature
- types of characters in a story
- types of characters in books
- number of characters in string
- count number of characters in python
- character traits of characters in othello
- types of characters in story
- types of characters worksheet
- list of characters in othello
- day 2 after chemo