I want to translate this JS code to Python 2.7:
var players =
{
one:
{
name: 'Player One',
money: 1500
},
two:
{
name: 'Player Two',
money: 1400
}
}
Accessing player one's name should return 'Player One'.
Accessing one's money should return 1500.
Accessing player two's name should return 'Player Two'.
Accessing two's money should return 1400.
Edit:
Can you also show how you'd be able to access player 1 and player 2 in the Python translation?
Thanks in advance.
Edited 7/19/2017 21:09:36