viernes, 28 de abril de 2023

range() to a list in Python

https://www.geeksforgeeks.org/range-to-a-list-in-python/

range() to a list in Python



# Create a list in a range of 10-20
My_list = [*range(10, 21, 1)]
  
# Print the list
print(My_list)

No hay comentarios:

Publicar un comentario