Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
What is wrong with my code
Given a list of number, output ābingoā if it contains an input number. Do not output anything if the number is not found x = [42, 8, 7, 1, 0, 124, 8897, 555, 3, 67, 99] num = int(input()) Code if ("x in num"): print("bingo") Itās saying Iām getting 4/6 problems correct but donāt know what Iām doing wrong that Iām not getting all of the problems right
2 Respostas
+ 3
...
if num in x:
...
0
If code is wrong
x in num is in string do it as like
if num in x:
Print("bingo")