I am relatively new to coding and saw this question on a video. enter image description here
Like for the
for i in range(2, num):
line I understand how it would work when plugging in a number 3 or greater for the variable num but I do not understand how it would work if it were to be 2.
The code checks if it is a prime number, so if I plug in 2 it would be:
for i in range (2,num-1):
which is
for i in range (2,1):
How would the code still run?