+ 3

Why my code does not give me any output.

x=4 b=6 i=2 while i<x: if(x%2==0 and b%2==0): z=(x//2) w=(b//2) if([z%j==0 and w%j==0 for j in range(2,10)]): print('Hi') i+=1 else: i+=1

18th Mar 2018, 2:14 PM
Maninder $ingh
Maninder $ingh - avatar
3 Respuestas
+ 10
post codes in future in codeplayground
18th Mar 2018, 2:35 PM
Vukan
Vukan - avatar
+ 2
I solve it I forgot to use any before if statement in line 8
21st Mar 2018, 5:29 PM
Maninder $ingh
Maninder $ingh - avatar