Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python dictoinary add value

student_scores = {'Simon': 45  }
print(student_scores)
# {'Simon': 45}
student_scores['Sara'] = 63
print(student_scores)
# {'Simon': 45, 'Sara': 63}
Source by www.journaldev.com #
 
PREVIOUS NEXT
Tagged: #python #dictoinary #add
ADD COMMENT
Topic
Name
6+7 =