Solutions to Quiz1.a --------------------- Problem 1 --------- 0 1 0 0 1 Problem 2 --------- 9 0 Problem 3 --------- 20 6 2 Problem 4 --------- Error 1: input is not converted into integer before using it for arithmetic operations Correction: n=int(raw_input("Enter a positive integer: ")) Error 2: While loop condition should be less than equal to n , to incorporate n also in the output Correction: while counter <= n Error 3: counter should be incremented by 1 each time , in the loop Correction: counter = counter + 1