The definition of integer
What is any whole number
The definition of float
What is a decimal
Definition of string
What is a sequence of characters
Definition of List
What is a sequence containing zero or more values separated by commas and enclosed in square brackets
Definition of dictionary
What is key:value pairs
Example of an integar
example of a float
what is 1.1
example of string
what is 'hello'
example of a list
what is [1,2,3]
example of a dictionary
What is the output: add two integer lists
list_1=[1,2,3]
list_2=[4,5,6]
print(list_1+list_2)
what is [1,2,3,4,5,6]
Adding two floats: what is the output of
float_1= 1.1
float_2= 1.1
print(float_1+float_2)
what is 2.2
what is single, double, or triple quotes
syntax for a list
what is square brackets and commas
Syntax for a dictionary
What is curly brackets, separated by commas, and colons
Assign a meaningful variable to an integer
what is my_age=25
Assign a meaningful variable to a float
what is avg_exam=95.2
Assign a string to a meaningful variable
what is my_name='ms.wightman'
assign a meaningful variable a list
what is my_list=[1,2,3]
Assign a meaningful variable to a dictionary
what is grocery={'apple':1}
Find the mistake: "pumpkin"/3
What is a string divided by an integer is not possible
Find the mistake: my_float=2.2
print(myfloat)
What is incorrect variable name in print function
Find the mistake: my_str='apple"
what is mismatched quotations
Find the mistake: my_list=[1,2,3)
What is mismatched parenthesis
find the mistake: my_dict={'hello'=1}
what is equal sign instead of a colon