ExampleEdit & Run
#Use the math.sin function

#import the math module
import math

#get the sine of a given number
print(math.sin(math.radians(30)))
Output:
0.49999999999999994[Finished in 0.011633143993094563s]

The math.sin() function calculates the sine of an angle given in radians.  

Syntax:
math.sin(x)
x The angle whose sine we want in radians. 
Parameters:

This function returns the trigonometric sine of x.

ExampleEdit & Run
import math

angle_in_degrees = 90 
angle_in_radians = math.radians(angle_in_degrees)

print("The sine of", angle_in_degrees, "is", math.sin(angle_in_radians))
Output:
The sine of 90 is 1.0[Finished in 0.010532525833696127s]

If the angle is in degrees, you should always convert it to radians before passing it to sin() function. As shown above, this can be achieved by using  math.radians function which converts an angle in degrees into radians. 

ExampleEdit & Run
import math

print(math.sin(math.radians(30)))
print(math.sin(math.radians(45)))
print(math.sin(math.radians(50)))
print(math.sin(math.radians(72)))
Output:
0.499999999999999940.70710678118654750.7660444431189780.9510565162951535[Finished in 0.010349843185395002s]