def makeHello(name):
    return "Hello, " + name

assert(makeHello("Kelly") == "Hello, Kelly")

###

"""
i = 1
while i > 0:
    print(i)
    i = i + 1
print("uh oh")
"""

###

num = 1
while num <= 10:
    print(num)
    num = num + 1

###
    
num = 10
while num > 0:
    print(num)
    num = num - 1
    
"""
Your task is to print the even numbers from 2 to 100.

What is your loop control variable? What is its start value,
continuing condition, and update action?

Once you've determined what these values are, use them to write
a short program that does this task.
"""

# Start value = 2
# Continuing condition = num <= 100
# Update action = num = num + 2

num = 2
while num <= 100:
    print(num)
    num = num + 2

###
    
num = 1
total = 0
while num <= 10:
    total = total + num
    num = num + 1
print("Total:", total)

###

line = 0
while line < 5:
    if line % 2 == 0:
        print("x-x-x")
    else:
        print("-o-o-")
    line = line + 1

# [20, 25] num = 7
def multipleInRange(start, end, num):
    i = start
    while i <= end:
        print(i)
        if i % num == 0:
            return True
        i = i + 1
    return False

###

result = 0
value = input("Enter a number, or q to quit:")
while value != "q":
    num = int(value)
    result = result + num
    value = input("Enter a number, or q to quit:")
print("Total sum:", result)
