DEV Community

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

Posted on

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

Explica este código Python

Dificultad: Intermedio

i = range(6)
print(type(i))
Enter fullscreen mode Exit fullscreen mode

👉 A. <class 'tuple'>
👉 B. <class 'list'>
👉 C. <class 'range'>
👉 D. <class 'int'>


Respuesta:

👉 C. <class 'range'>

Cuando usamos la función range() creamos un objeto de tipo de range en Python. Los objetos de tipo range son eficientes y óptimos para ser recorridos por bucles.

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