number = int(input("Enter a number:" )) if number == 7: print( " 1 2 3 4 5 6 7" ) if number == 6: print( " 1 2 3 4 5 6 " ) if number == 5: print( " 1 2 3 4 5 " ) if number == 4: print( " 1 2 3 4 " ) if number == 3: print( " 1 2 3 " ) if number == 2: print( " 1 2 " ) if number == 1: print( " 1 " )