math under a short name and works with three numbers read from a string.
import math as m
values = "9 16 25".split()
roots = [m.sqrt(int(v)) for v in values]
print(roots[0], m.ceil(roots[1] / 3), m.factorial(len(values)))
What does the program print?Log in to join the discussion.
Loading…