''' Purpose: prints total of integers from 1 to n for user-supplied n. ''' # get n reply = input( 'Enter a number: ' ) n = int( reply ) # compute total of 1 to n ... # print total print( total )