Last answer with an error, I'm sorry
def print_volume(r):
from math import pi
return print((4 / 3) * pi * (r ** 3))
print_volume(1)
print_volume(2)
print_volume(3)
the second part of the condition is very strange
def sin_us(x):
from math import sin, cos, tan
print(sin(x), cos(x), tan(x), end='\n')
return None
The function accepts the angle and calculates, as well as prints the sine, cosine, and tangent of the entered angle
Comments
Leave a comment