On Wed, Mar 01, 2017 at 09:29:04AM +, Alan Gauld via Tutor wrote:
> You need to be explicit:
>
>if hours_worked > 40 and hours_worked < 60:
>
> You can also write what you intend in a slightly
> different form:
>
>if (40 < hours_worked < 60):
>
> Note:
> The second form an unusual
darrickbled...@gmail.com wrote:
> For some reason I am getting a syntax error when I try and write my second
> If statement. I cannot find anything wrong with the statement because it
> is set up the same as all the others I see online. Perhaps someone can
> inform me why I am getting this. Thanks
On 01/03/17 06:21, darrickbled...@gmail.com wrote:
> wage = eval(input("Enter in the employees hourly wage: ")) #get wage
> hours_worked = eval(input("Enter in the number of hours worked: "))
Don't use eval() like this it is a security risk
and is a very bad habit to get into. Instead use
an expl
For some reason I am getting a syntax error when I try and write my second If
statement. I cannot find anything wrong with the statement because it is set up
the same as all the others I see online. Perhaps someone can inform me why I am
getting this. Thanks for your help
Darrick Bledsoe II
#