Make an array of number in a List Comprehension

I just started to learn programming using Python, and I was wondering if anyone could help me with a solution to make an array of strings containing numbers in a list:

[‘1’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’,… until ‘100’]

is it possible to use a compact List Comprehension?



1 Like

yeah, its super easy I dont want to give out solution but you can learn it in short time

1 Like

yea… I just got it, silly me. it’s
str(number) for number in range (1, 101)