0
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 Answers
+ 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")