How do we show something on the console
print()
How do we print "Delhi" in this structure
country = { "India": ["Delhi", "Maharashtra", "Haryana", "Uttar Pradesh", "Himachal Pradesh"]
country["India"][0]
What command do you get user response?
What is input()
How do we create a list
with []
What do we use to create a dictionary
{}
What data type is: "True"
what is string
What is missing in this line of code:
print(hello world")
what is opening quotes
what are the two types of loops
while and for
What index would the first element in a list have
0
What is the value in {"bob":500}
500
What data type is 9000
What is an Integer
What is the result
x=6
y=8
x=4
print(x+y)
what is 12
What data type is the number 3?
what is an int
x = [3,5,7]
how do we add 3 and 7
x[0]+x[2]
How would we change the 9 into 500
{"tom":9}
x["tom"] = 500
what is 53
How do we print 5?
R = {'X':[1, 2, 3], 'Y':[4, 5, 6]}
R["Y"][1]
How do we remove an element from a list
x.remove()
Which method adds an element to a list
.append()
how do we delete a dictionary
del
What is the result of: print(10%5)
what is 0
How do print Marie's Age
people = {1: {'name': 'John', 'age': '27', 'gender': 'Male'}, 2: {'name': 'Marie', 'age': '22', 'gender': 'Female'}}
people[2]["age"]
What function converts a String into an integer
int()
How do we print the number 5
[[3,5],6,8,4]
x[0][1]
How do you access a value in a dictionary
X[key name]