+ 1
Bug finding
def isPrime(x): if x < 2: return False elif x == 2: return True for n in range(2, x): if x % n ==0: return False return True def primeGenerator(a, b): #your code goes here for num in range (a, b+1): if isPrime (num): yield (num) f = int(input()) t = int(input()) print(list(primeGenerator(f, t)));
3 Respostas
+ 3
BEHCET AYTIMUR AHISKA ,
there is some information missing to catch the `bug`:
> we need to know the *tutorial name*, the *module name* and the *platform* you are working on (ios, android, web)
> the error message
+ 2
Are you giving the input on two separate lines in Sololearn?
Try:
4
5
Like that, and see if you get the bug. Remember, Sololearn's compiler doesn't accept real-time input. You have to provide it all at the beginning.
0
Sololearn practices telling me the same thing is that there has been bug in my above mentined code bids includes the bug but no bug has been existed in them, why is it saying so?