input: Write a function to generate a set of random numbers in Python. If the input number is less than or equal to zero, return an empty set. Otherwise, return a set of random numbers between 1 and 100.
  
  def generate_randoms(n):
    if n <= 0:
      return set()
    return {random.randint(1, 100) for _ in range(n)}
  
  assert generate_randoms(10) != []  
  assert generate_randoms(0) == set()  
  assert generate_randoms(-5) == set()
output: def generate_randoms(n):
    if n <= 0:
      return set()
    return {random.randint(1, 100) for _ in range(n)}