The purpose of this question is to test your understanding of how to define a new function that calls another function in its body.
Define the function show_new_integer(). This function takes an integer as its argument. The function should call the function magic() on the integer and return the result. Nothing more.
The function magic(), which takes a single integer as its argument,has already been defined for you in file_with_magic. The contents of this file are imported with the form file_with_magic import * below. Do do not change the line with this import statement.
For example:
Test | Result |
---|---|
print(show_new_integer(0)) |
1 |