Exercise: Create Function with Parameter
Define a function named func so that all three
print()
statements below print True
.# define missing function here...
print(func(2) == 4) # expected: True
print(func(3) == 6) # expected: True
print(func(4) == 8) # expected: True
Python
Setting up Python environment...
Output