Python Programming Flashcards
Algorithm-
A collection of unambiguous and executable operations to perform some task in a finite amount of time.
Values-
Any literal that can be stored in a memory location. Values can be numeric, text consisting of characters or specific symbols
Variable-
A named memory location. We assign values to variables.
Expression-
A combination of operator and operations that evaluate to a value
Assignment statement-
Used to store the value of an expression in a variable.
5 data types
Float, integer, string, list, Boolean
Data types tellβ¦
the interpreter the range of values that can be stored and the kind of operations that are possible for a given variable.
Integers
- Int
- Positive and negative whole numbers
Floating-point number
- Float
- Stores any number that can be represented on the number line
- Decimal or fractional numbers
List
- []
- Holds an array of data
Character
- Char
- Single character on the keyboard
Boolean
True/false values
String
- Str
- Sequence of character
Function for finding length of a string
Len()
Function for printing word in upper case
.upper()