str - a string stores text, any combination of (letters, digits and symbols)
int - stores positive or negative Integers (whole numbers)
float - stores decimal numbers
bool - the values True or False
String - stores text; any combination of (letters, digits and symbols)
Integer - stores positive or negative whole numbers
float - stores decimal numbers
Character - stores single characters which can be letters, digits or symbols
Boolean - stores true or false
This code adds two numbers together and assigns the result to the additionAnswer variable
If you had to count how many keys are on your keyboard you might check along the rows thinking: 1, 2, 3, … It’s a very common task where you add on 1 to your count. In fact you a re following a well known algorithm:
in Python you can add on 1 to a count variable like this
This code subtracts numberTwo from numberOne and assigns the result to the subtractionAnswer variable.
This code multiplies two numbers and assigns the result to the multiplicationAnswer variable.
no more than 7, 7 or below
at least 7, 7 or more
An array in python can can be implemented as a list to store multiple values in a single variable. List elements in python can store values of different types.
This line of code clears the screen. (This will only work in replit)