Support Forums
What Would You Like To Count By? - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Python Programming Language (https://www.supportforums.net/forumdisplay.php?fid=32)
+---- Thread: What Would You Like To Count By? (/showthread.php?tid=1715)



What Would You Like To Count By? - nevets04 - 10-17-2009

Code:
import os
while True:
    x = 0
    y = 0
    z = 0
    os.system("clear")
    x = input("What Would You Like To Count By?: ")
    os.system("clear")
    y = input("Where Would You Like To Start?: ")
    os.system("clear")
    z = input("Where Would You Like To End?: ")
    os.system("clear")
    for i in range(y,z,x):
            print i
    raw_input("Press Enter To Continue")



RE: What Would You Like To Count By? - Mr.FeellingLeSS - 10-20-2009

i must be stupid but i dont get the program Roflmao

2short Unsure


RE: What Would You Like To Count By? - nevets04 - 10-20-2009

(10-20-2009, 10:17 AM)Mr.FeellingLeSS Wrote: i must be stupid but i dont get the program Roflmao

2short Unsure

Lol. It just counts by whatever you want. I just made it to practiceusing the for and range fuction