all AI news
Ibuprofeno.py💊| #89: Explica este código Python
April 24, 2024, 11 a.m. | Cristian Fernando
DEV Community dev.to
Explica este código Python
Dificultad: Intermedio
i = range(6)
print(type(i))
👉 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.
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
Founding AI Engineer, Agents
@ Occam AI | New York
AI Engineer Intern, Agents
@ Occam AI | US
AI Research Scientist
@ Vara | Berlin, Germany and Remote
Data Architect
@ University of Texas at Austin | Austin, TX
Data ETL Engineer
@ University of Texas at Austin | Austin, TX
Consultant Senior Power BI & Azure - CDI - H/F
@ Talan | Lyon, France