Jan-20-2017, 08:03 PM
On top of the previous comment, I wish to point out that (1) you have a syntax error, a missing colon for your if, and (2) you never call the function you define.
Is this homework? What is your goal? Where are you learning Python from? The code you've posted suggests you might be developing a bad habit of writing too much code before testing what you've written so far.
Is this homework? What is your goal? Where are you learning Python from? The code you've posted suggests you might be developing a bad habit of writing too much code before testing what you've written so far.