Dictionary definition issue | Sololearn: Learn to code for FREE!

+1

Dictionary definition issue

1. Create a dictionary that contains resume data for a user, name that dictionary: user_profile, and input the following elements: Keys Values 'name' 'Mark' 'age' 16 'skills' ['Python', 'Java'] Syntax I tried as below: user_profile = { 'Keys':'Values', 'name': 'Mark', 'age':16, 'skills':(['Python','Java'])} print(user_profile) but test scenario failed so what did I miss here?

9/23/2020 2:42:06 AM

Abhi

3 Answers

New Answer

+5

Your code have no errors an printing correct add Question link also. #Ke alues user_profile = { 'Keys':'Values', 'name': 'Mark', 'age':16, 'skills':(['Python','Java'])} print(user_profile)

+1

Maybe 'Keys':'Values' is unnecessary...

0

There is no issue in my symtax however issue with file placement.