input: Write a function to analyze a given Python code and write a function that checks if a given number is prime.
  def primeCheck(num):
   if num > 1:
    for i in range(2, num):
     if (num % i) == 0:
      return False
   else:
    return False
   return True
  assert primeCheck(2)==True
  assert primeCheck(3)==True
  assert primeCheck(4)==False
  assert primeCheck(7)==True
  assert primeCheck(1)==False
output: def primeCheck(num):
      if num > 1:
          for i in range(2, num):
              if (num % i) == 0:
                  return False
      else:
          return False
      return True