[Tutor] Curious dictionary printing
Cranky Frankie
cranky.frankie at gmail.com
Mon May 7 19:16:28 CEST 2012
In 3.2.2 in IDLE I have this dictionary entry:
Namath = {"first_name": "Joe", "last_name": "Namath", "phone": "212-222-7777",\
"email": "joe.namath at gmail.com", "stadium": "Shea Stadium"}
when I print it:
print(Namath)
I get:
{'phone': '212-222-7777', 'first_name': 'Joe', 'last_name': 'Namath',
'email': 'joe.namath at gmail.com', 'stadium': 'Shea Stadium'}
Why is it out of order?
--
Frank L. "Cranky Frankie" Palmeri
Risible Riding Raconteur & Writer
“The problem with quotes on the Internet is that
it is often difficult to verify their authenticity.”
- Abraham Lincoln
More information about the Tutor
mailing list