Solved Please Help With The Following Python Code Thanks

Solved Please Help With The Following Python Code Thanks