repl.it
@SakuraKimiko/

python dict

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
people={

  "Ayaka":{"ID":"ID01","AGE":25,"GRADE":"A"}, 
  "Basil":{"ID":"ID02","AGE":30,"GRADE":"B"}, 
  "Carmen":{"ID":"ID03","AGE":35,"GRADE":"A-"},
  "Daniel":{"ID":"ID04","AGE":40,"GRADE":"B"}, 
  "Emma":{"ID":"ID05","AGE":45,"GRADE":"D"}, 
  "Fame":{"ID":"ID06","AGE":50,"GRADE":"C"}
  }

print(people["Emma"]["AGE"])