title: How i can use a dictionary as a parameter of a class and use it?
body: <p>I want a dictionary to call as a parameter in a class and wanna use it with the functions which are inside the class.</p>
  
  <pre><code>class video_0(data):
  
  def check_internal(self):
      if 'internal' in self.data['video_0']:
          return True
      else:
          return False
  
  def check_sdcard(self):
      if 'sdcard' in self.data['video_0']:
          return True
      else:
          return False
  </code></pre>
  
  <p>Here data is the dictionary. I tried to do something like this.</p>
  
  <pre><code>data = {
  "video_3": {
      "internal": {
          "del_status": 1,
          "del_start": 1574164254340.0,
          "del_end": 1574164254345.0,
          "copy_start": 1574162274613.0,
          "copy_end": 1574162274624.0,
          "copied": 1,
          "fail_reason": ""
      },
      "sdcard": {
          "del_status": 1,
          "del_start": 1574829181577.0,
          "del_end": 1574829181577.0,
          "copy_start": 1574162275033.0,
          "copy_end": 1574162275130.0,
          "add_status": 1
      },
      "starttime": 1574162215744.0,
      "duration": 57891,
      "endtime": 1574162273635.0,
      "size": 3754770
  },
  </code></pre>
  
  <p>This is the input dictionary i want to use inside the class.</p>