DEV Community

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

Posted on

1

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

Explica este código Python

Dificultad: Fácil

x = {1,2,3}
y = {3,4,5}

print(x.intersection(y))
Enter fullscreen mode Exit fullscreen mode
  • A. {1, 2, 4, 5}
  • B. {3}
  • C. {1, 2, 3, 4, 5}
  • D. Ninguna de las anteriores

Respuesta:

👉 B. {3}

La intersección entre conjuntos consiste en tomar solo los items que estén presentes en ambos conjuntos, en este caso el único valor que cumple con eso es el 3.

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