mercredi 8 avril 2020

How to convert a number to a list in Python? [duplicate]

I have a number for example 7.

number =7 

How can convert 7 into a list:

list = [1,2,3,4,5,6,7]



Aucun commentaire:

Enregistrer un commentaire