student={"name":"inba","marks":850} print ("keys are") for i in student : print (i). | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

student={"name":"inba","marks":850} print ("keys are") for i in student : print (i).

What is an error in this code

15th May 2023, 5:22 AM
Dineshkumar Dineshkumar
Dineshkumar Dineshkumar - avatar
1 Answer
+ 3
the print(i) statement is not indented after the for loop header student = {"name": "inba", "marks": 850} print("keys are:") for i in student: print(i) here's corrected code
15th May 2023, 5:37 AM
I am offline
I am offline - avatar