def is_prime(n):
if n >= 2:
for i in range(2, n):
if not (n % i):
return False
else:
return False
return True
I was trying to make a code that would dheck if a number is a prime numeber. I found this code on the internet and it works great. However, I am relatively new to coding so I was wondering if someone could explain the final 2 lines for me. Why do you return True after return False ?