write a program to print first 100 natural no. using list in python?
Answers
Answered by
1
Answer:
Hi there please reffer to the attachment:
Code:
num=int(input("Please enter maxinmum number: "))
print("Natural numbers 1 to ",num )
def naturalNum(num):
for i in range(1,num+1):
print(i),
naturalNum(num)
my_list = [num]
Attachment:
Attachments:
Similar questions
Environmental Sciences,
2 months ago
Computer Science,
2 months ago
Math,
5 months ago
Math,
5 months ago
Geography,
11 months ago
Math,
11 months ago