Is my raspberry pi code right for the MG92B servo?

I'v been at this a while and i'm stuck, the wiring is correct and its in the right GPIO pin, power supply is hooked up correctly, just need to know if my code is correct. i'm using a MG92B towerpro servo with a 6 volt battery supply.
0