Computer Science, asked by Svivek, 5 months ago

write a program to print first 100 natural no. using list in python?​

Answers

Answered by nasaanirudh
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