[Python] Function
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()
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()
Comments