Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What will be the output of the following Python code?
d = {“john”:40, “peter”:45}
d[“john”]

What will be the output of the following Python code?
d = {“john”:40, “peter”:45}
d[“john”]
a) 40
b) 45
c) “john”
d) “peter”

Answer: a

Join The Discussion