Words and symbols that tell the computer certain demands.
What is Syntax?
A data type that means a number value.
What is an integer?
Integer, Boolean, String, and Float.
What are data types?
The function for integer.
What is int()?
To make a comment.
What is #?
Used to put notes in the code or explain what the code is doing?
What is a comment?
A data type that means a whole number, positive or negative, with one or more decimal.
What is a float?
The data type that does not need any symbols?
What is an integer?
The function for string.
What is str()?
To assign a variable.
What is equal?
A data type that assigns a value to be True or False.
What is Boolean?
Changing a variable type.
Converting
The most important rules when assigning Booleans.
What is the first letter of True and False must be capitalize?
The function for float?
What is float()?
Missing: rating = int(input("Rate yourself 1 to 10."
What are 2 parentheses?
A data type that means a set of words or numbers surrounded by quotation marks.
What is a string?
Attributes that tell the computer how you plan on using the variable.
What are data types?
Name 2 ways you can convert to a number.
What is integer and float?
Changing a float to an integer. (what happens)
What is it drops the decimal?
Symbol(s) that go with the word input.
What are quotation marks and parentheses?
To press enter or return to start a new line.
What is line break?
To combine variables and text together in a print statement.
Concatenation.
For strings, you can use ______ or _______ quotations.
What is single or double?
The data type that overpowers other data types.
What is a string?
The variable is age and it needs to be converted to a float. (hint: 2 variables, 1 print statement.)
What is
age = input("How old are you?")
converted_age = float(age)