DEV Community

Cover image for Ibuprofeno.py💊| #130: Explica este código Python
Cristian Fernando
Cristian Fernando

Posted on

3

Ibuprofeno.py💊| #130: Explica este código Python

Explica este código Python

Dificultad: Fácil

x = {"a", "b", "c"}
print("c" in x)
Enter fullscreen mode Exit fullscreen mode
  • A. True
  • B. False
  • C. NameError
  • D. SyntaxError

Respuesta:

👉 A. True

Podemos usar el operador in para verificar si un valor pertenece o no a un conjunto.

En nuestro ejemplo c si esta en el conjunto x, entonces regresamos True.

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more