+ 1
why if statement is not working
12 Respuestas
+ 3
Oma Falk and Somil Khandelwal We can also check like this.
if comp[0] == 3:
+ 2
Change your condition with this
if comp == [3]:
+ 2
Somil Khandelwal You can use @ in comment to tag people.
+ 1
put line 5 into while loop
+ 1
whats wrong?
+ 1
Oma Falk comp giving output in array like this [2] or [3] and we can't compare with int value directly.
+ 1
🅰🅹 - Sʀ. Sᴏғᴛᴡᴀʀᴇ Eɴɢɪɴᴇᴇʀ
right...
see it working now and asked if there are still problems
+ 1
Wasi unfortunately not on SL.
0
oma Falk code is still not working
0
SR.software engineer
Thanks pal
0
You can import time and use time.sleep(1) to make that work.
0
request ,json,time and many module are not working in this app why?