Why is three not in nums? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Why is three not in nums?

can't a value be checked in a dictionary instead of the key 🔑?

4th Aug 2017, 7:27 PM
Nuruddeen Hayatu
Nuruddeen Hayatu - avatar
1 Respuesta
0
for key, value in dictionary.items(): if value == "tralala": pass
4th Aug 2017, 8:57 PM
clement
clement - avatar