🔒 Closed Already answered

Status
Not open for further replies.

BrigthWin

Forum Veteran
Pa help po mga paps pano sagutan to dapat yung maging product po is yung binilugan kopa sa ibaba salamat po in advance
 
Yung code po sa itaas yung given kailangan po dapat maging product niya is yung may bilog po sa picture
Python:
d1 = {
"Person1": {
"name": "Eliser",
"hobbies":["a", "b","c"]
},
"Person2":{
"name": "Pogi",
"hobbies":["d", "e","f"]
}
}

# LOOPING
for key, value in d1.items():
    print(key)
    print("name:", value["name"])
    print("hobbies:", "".join(value["hobbies"]))
 
Python:
d1 = {
"Person1": {
"name": "Eliser",
"hobbies":["a", "b","c"]
},
"Person2":{
"name": "Pogi",
"hobbies":["d", "e","f"]
}
}

# LOOPING
for key, value in d1.items():
    print(key)
    print("name:", value["name"])
    print("hobbies:", "".join(value["hobbies"]))
Maraming salamat po
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 5
    Replies
  • 666
    Views
  • 2
    Participants
Last reply from:
EliserGatche

Trending Topics

Online now

Members online
1,281
Guests online
1,819
Total visitors
3,100

Forum statistics

Threads
2,292,152
Posts
29,074,863
Members
1,210,185
Latest member
Fitch26
Back
Top