My notes and examples while switching from Python2 to to Python3.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
257 B

#!/usr/bin/python3
myBio = { 'name' : "unknown", 'age' : 666, 'hobby' : 'hacking' }
print(myBio)
myBio["name"] = "x"
print(myBio["name"])
dict_hax= { (1,2) : "y", 1 : "hax" }
print(type(dict_hax[(1)]))
print(dict_hax[(1)], end="")
print(dict_hax[(1,2)])