Skip to content
Permalink
429b49ee1d
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
24 lines (13 sloc) 437 Bytes
# Here is an example of a function
def say_hello():
print("Hello world")
# it doesn't run without being called
# uncomment the following to test it
# say_hello()
# Here is a funciton that calculates a square:
def calcSquare(n):
return 9
# Unfortunately it always returns the square of 3, not the given number
# Correct it and uncomment the lines below to test it
# n=5
# print(f"The square of {n} is {calcSquare(n)}")