main.py imports floor from math, and then everything from its own module tools.py.
tools.py:
from math import ceil
def floor(x):
return int(x) + 10
main.py:
from math import floor
from tools import *
print(floor(2.7), ceil(2.1))
What does main.py print?Log in to join the discussion.
Loading…