+ Post New Thread
Results 1 to 3 of 3

Thread: Python how to print 1 to 100 numbers

  1. #1
    Junior Member Saarh's Avatar
    Join Date
    Apr 2017

    Python how to print 1 to 100 numbers

    Using Python how to print 1 to 100 numbers. I have tried this with an example like count = count + 3 but i get an infinite loops going continuously. Please help to solve it.

  2. #2
    Junior Member Yokesh's Avatar
    Join Date
    Apr 2017

    Is this useful / helpfull? Yes | No
    Actually, it is very easy to print a loop of numbers in python. It is similar to a c program. I will help to solve it.

    def printfunction(count):
    for count in 101:
    But if u use count=count+3 or count+9 it will go continuously because you would have used while loop like while count != 100. Here the loop never ends because the number never becomes equal, so it runs continuously. You can try this result. Python generally is very easy to learn for web development applications.

  3. #3

    Is this useful / helpfull? Yes | No
    # Python program to print numbers from 1 to 100

    print('Numbers from 1 to 100:')
    for n in range(1, 101):
    print(n, end=' ')

    If you are looking for Python Development Service? Programmers.io has an experienced Python development team with 8+ years of experience at reasonable rates.

+ Post New Thread

Similar Threads

  1. Guide how to install Python on Windows
    By Fli in forum Computers & Technology
    Replies: 2
    Last Post: 04-27-2022, 11:31 AM
  2. Php vs Python
    By nesir in forum PHP, MySQL Forum
    Replies: 8
    Last Post: 11-26-2021, 02:45 AM
  3. Which SEO Forums Are the Best?
    By gunjanjain in forum SEO - Search Engine Optimisation
    Replies: 10
    Last Post: 04-23-2020, 11:03 AM
  4. Watch Linux /tmp folders to delete bad perl,python scripts
    By Fli in forum Security, protection
    Replies: 0
    Last Post: 09-25-2017, 09:49 PM
  5. Replies: 0
    Last Post: 11-19-2013, 10:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
 Protected by : ZB BLOCK  &  StopForumSpam