How can i create a semicircle in Blender using python script

I am new with python and i’m having difficulties for an assignment.I want to make a semicircle door using python script.Could you let me know the script?

This is the door example link :

Thank you in advance