Python Flashcards
(200 cards)
=
defines variable
==
testing if two things have the same value
\
prints \
\t*
indent and an asterisk
\a
ASCII Bell (BEL)
\b
ASCII Backspace (BS)
\f
ASCII Formfeed (FF)
\n
ASCII Linefeed (LF)
\N{name}
character named name in the Unicode database (Unicode only)
\r ASCII
Carriage Return (CR)
\t ASCII
Horizontal Tab (TAB)
\uxxxx
Character with 16-bit hex value xxxx (Unicode only)
\Uxxxxxxxx
Character with 32-bit hex value xxxxxxxx (Unicode only)
\v
ASCII Vertical Tab (VT)
\ooo
Character with octal value oo
\xhh
Character with hex value hh
def
keyword, indicates a function de?nition
**
exponentiation
- (strings)
repetition
value
One of the basic units of data, like a number or string, that a program manipulates.
type
A category of values. The types we have seen so far are integers (type int), ?oating-point numbers (type float), and strings (type str).
integer
A type that represents whole numbers.
floating-point
A type that represents numbers with fractional parts.
string
A type that represents sequences of characters.