data types Flashcards
what is a integer
whole number
what is a boolean
a result that can only have two outcomes: true or false
what is a string
A string is a sequence of characters enclosed between the double quotes “…” Example: “abc123” “Hello World” “Hello, what is your name ?”
what is a float
Float is a function or reusable code in the Python programming language that converts values into floating point numbers. Floating point numbers are decimal values or fractional numbers like 133.5, 2897.11, and 3571.213, whereas real numbers like 56, 2, and 33 are called integers.
what is a list
a list is a couple of data values in these types of brackets: [] and broken up by commas ,
greater than or equals to
> =
common boolean operators
not, and, or, logical operators
equals to
=
less than or equals to
<=
plus
+
minus
-
modulus
%
divide
/
div
//
power
**
times
*
greater than
<
less than
>
equal to
==
not equal to
!=
decimal integer
d
fixed point
f
nested structures
nesting is when you put one statement inside another
while loops
Python While Loop is used to execute a block of statements repeatedly until a given condition is satisfied. When the condition becomes false, the line immediately after the loop in the program is executed.