less than 1 minute read

Simple example shows python function

def square(x):
  return x * x

def main():
  for i in range(10):
    print("{} squared is {}".format(i, square(i)))

if __name__ == "__main__":
  main()

Categories:

Updated:

Comments