Snippets Collections
month_conversion = {
“Jan” = “January”
“Feb” = “February”
“Mar” = “March”
“Apr” = “April”
“Jun” = “June”
}
# keys must be unique:
print(month_conversion[“Mar”])


Output”
           March
bookmark
dashboard

Mon Mar 30 2020 12:10:17 GMT+0000 (UTC) https://www.youtube.com/watch?v=rfscVS0vtbw&t=5s

#python #python #dictionary #keys

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension