#Use the math.sin function

#import the math module
import math

#get the sine of a given number
print(math.sin(math.radians(30)))

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

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

This function returns the trigonometric sine of x.

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))

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. 

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)))