title: Check variable value is in array or not Django
body: <p>Hi can anybody tell me how can i check the variable value is in array or not
  like i have </p>
  
  <pre><code>variable = 17.40
  array = [14.40,14.12,45.50.....]
  </code></pre>
  
  <p>need to check the variable value is present or not</p>
  
  <p>edited
  i have try the following but it doesnot work   </p>
  
  <pre><code>scoremx = [19,18,17]
  style_score=score.objects.get(user_id=request.user.id)
  if style_score.style_quiz_score in scoremx: 
  
  it goes in else cxondition but it has the 19 value in database
  </code></pre>