Skip to content

Instantly share code, notes, and snippets.

@fchevitarese
Created May 25, 2015 13:05
Show Gist options
  • Save fchevitarese/93be997f38c2086adcdd to your computer and use it in GitHub Desktop.
Save fchevitarese/93be997f38c2086adcdd to your computer and use it in GitHub Desktop.
# coding: utf-8
# Lista de valores que são retornados...
list_values = ("1432430070.573",
"1432430070.574",
"1432430856.584",
"1432430856.585",
"1432555386.0",
"1432555386.1",
"1432555564.3",
"1432430070.573",
"1432430070.574",
"1432430856.584",
"1432430856.585",
"1432555386.0",
"1432555386.1",
"1432555564.3",
"1432555564.4",
)
# Valor certo!
right_value = "1432555564.4"
for l in list_values:
if l == right_value:
print "list_item (%s) == right_value (%s)" % (l, right_value)
else:
print "list_item (%s) != right_value (%s)" % (l, right_value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment