What would the following code generate?

mydict = ["name":"John", "surname":"Smith"] 

print(mydict) 

1
2
3
3

A SyntaxError

Here's one more challenge. What would the code generate this time?

 a = [1, 2, 3}

1
2
3
1

A SyntaxError

What would the below code output?

print(John) 

1
2
3
4
4

A NameError

What would you get this time?

mylist = [John, Jack, Jim] 

print(mylist) 

1
2
3
4
3

A NameError