input: Write a function to generate and print all prime numbers between 1 and a given number n. If the given number n is less than 2 then print an empty list.
  assert generate_prime_numbers(20)==None
  assert generate_prime_numbers(10)==None
  assert generate_prime_numbers(1)==None
  assert generate_prime_numbers(-5)==None
output: def generate_prime_numbers(n):
      if n < 2:
          print([])
          return
      primes = []
      for num in range(2, n + 1):
          for i in range(2, num):
              if (num % i) == 0:
                  break
          else:
              primes.append(num)
      print(primes)