Select Git revision
Lab7 Answers.rtf
counting.py 484 B
def countUp(low, high, step=1):
while low <= high:
print(low)
low += step
def countDown(high, low=1, step=1):
''' Good place to define step to be a non-negative int'''
while high >= low:
print(high)
high -= step
# countUp(1, 10)
countUp(10, 100, 10)
#countDown(50, 25, 5)
#countDown(int(input("Count down from what: ")))
myText = "I like the Drexel Dragon, whose name is Mario"
myWords = myText.split()
print(myWords)