title: why cannot I get the value from the dictionary?
body: <p>There is a dictionary called garden.fruit</p>
  
  <pre><code>garden.fruits = {"fruit" : "apple"}
  </code></pre>
  
  <p>And now I want to get the value of the key "fruit" from dictionary.
  The code is below</p>
  
  <pre><code>#!/usr/bin/python
  #-*-coding:utf-8 -*-
  garden.fruits = {"fruit" : "apple"}
  print garden.fruits['fruit']
  </code></pre>
  
  <p>But I get a name error</p>
  
  <pre><code>NameError: name 'garden' is not defined
  </code></pre>
  
  <p>I know the variation name should not include the <b>dot</b>, but what if I want use this variation name and get the value from the dictionary? Thanks</p>