Printing AP by simply adding d to previous term .
curr_term NEW_LINE curr_term = a NEW_LINE for i in range ( 1 , n + 1 ) : NEW_LINE print ( curr_term , end = ' ▁ ' ) NEW_LINE INDENT curr_term = curr_term + d NEW_LINE DEDENT