Sep-10-2017, 06:19 AM
Extremely new to programming, and I am trying to get this whole loop thing down. I am doing one of the assignment's that I am sure you all have probably seen a hundred times; I am doing the gross pay and over time pay calculator. I have everything done with the exception of getting the program to loop with the user ability to stop it.
With the example below I got the program to loop for me but now it seems like it just skips the if statement and moves right into the else statement.
Example:
With the example below I got the program to loop for me but now it seems like it just skips the if statement and moves right into the else statement.
Example:
while a ==0: n = input("Enter employee's name or press 0 to quit:") print() if n==0: exitAgain, very new to this so any and all help is much appreciated.