Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What Would You Like To Count By?
#1
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")
Reply
#2
i must be stupid but i dont get the program Roflmao

2short Unsure
Reply
#3
(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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python to parse text file and get the count of items magicjack89 0 653 06-28-2012, 10:01 AM
Last Post: magicjack89

Forum Jump:


Users browsing this thread: 1 Guest(s)