Write a python program to create a list of integers from 1 to 100
Answers
Answered by
0
Answer:
for X in range(1,101);
list.append(X)
print ("the list of integer numbers between 0 to 100 is:" +X)
Explanation:
all the numbers between 1 to 100 are integers
for X in range loops no between 1 to 100
I wrote 101 becoz last no is ignored in this loop
list.append is a function for making all the elements inside it to form a list
Similar questions
Social Sciences,
2 months ago
Math,
2 months ago
Social Sciences,
5 months ago
Math,
5 months ago
Physics,
11 months ago
English,
11 months ago