Generate a code snippet to get an item stored in a Python dictionary using the key.
Not applicable
#Getting the value of the 'name' key from the dictionary 
dict = {'name':'John', 'age': 30, 'city':'New York'}
value = dict['name'] 

#Printing the value 
print(value)