+ Post New Thread
Results 1 to 3 of 3

Thread: Python Forums

Hybrid View

  1. #1
    Junior Member Saarh's Avatar
    Join Date
    Apr 2017
    Posts
    1
    Post Thanks / Like

    Python Forums



    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
    Posts
    7
    Post Thanks / Like


    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:
    print(count)
    count=count+1;
    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
    Junior Member Balaji's Avatar
    Join Date
    Apr 2017
    Posts
    5
    Post Thanks / Like


    Is this useful / helpfull? Yes | No

    Angular Js

    I'm new to java script frame works. what is the use of angular js and why it is used

+ Post New Thread

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