for offset in range(10):
print(' {:<+5}'.format(offset), end="")
print()
for row_start in range(0, 90, 10):
print('{:5}'.format(row_start), end="")
for offset in range(10):
deg = float(row_start + offset)
print('{:8.4f}'.format(func(deg)), end="")
print()
def sin_of_degrees(degrees):
return [login to view URL](deg2rad * degrees)
print('Table of the sine function for angles given in degrees ...')
make_table(sin_of_degrees)
print()
# Add code below this line so that the program also makes tables
# of the cosine and tangent functions.
def cos_of_degrees(degrees):
return [login to view URL](deg2rad * degrees)
print('Table of the cosine function for angles given in degrees ...')
make_table(cos_of_degrees)
print()