On Jan 9, 7:10 am, aregee wrote:
> Double Squares
> A double-square number is an integer X which can be expressed as the
> sum of two perfect squares. For example, 10 is a double-square because
> 10 = 32 + 12. Your task in this problem is, given X, determine the
> number of ways in which it can be
the following would be nicer:
def run():
get_name()
a = get_age()
check_age(a)
again()
if __name__ == "__main__":
run()
In this setup your script will only be run if it's started by itself,
but when using a import, the functions from the script can be executed
separately.
-