def main():
number = int(input("Enter a number:"))
limit = square(number)
print("Counting up to", limit)
countto(limit)
def square(x):
return x ** 2
def countto(number):
# Not the same as the number variable in main!
for i in range(1, number):
print(i, end = ", ")
print(number)
main()