i have designed the code using python for raspberry pi 3 but when i run the code it does not receive data from pc serial port to the raspberry pi
import serial
import time
ser = serial.Serial('/dev/ttyAMA0',baudrate = 9600,timeout =2)
print (ser.name)
ser.write(b'hello' )
time.sleep(1)
pj = ser.readline()
print (pj )




