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

ibuprofeno.py|-#122:-explica-este-codigo-python

Explica este código Python


Dificultad: Fácil

conjunto_vacio = {}
print(type(conjunto_vacio))
  • A.
  • B.
  • C.
  • D.

Respuesta:

👉 B.

No es posible crear conjuntos vacios usando a notación de {}, para lograr esto es necesario usar la palabra reservada set, así:

conjunto_vacio = set({})
print(type(conjunto_vacio)) # 

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
what-is-process-mapping?

What is Process Mapping?

Next Post
what-the-coast-guard-can-teach-us-about-quality

What the Coast Guard Can Teach Us About Quality

Related Posts