I can really encourage going through the Dynamo Primer:
http://dynamoprimer.com/en/
And the DesignScript guide:
Attempt to get a grasp of Dynamo before you venture into Python
And if a comment solved your issue please mark it as the solution, and maybe leave a like here and there