+ 1
Anyone there to help me out?
21 Risposte
+ 8
WAP stands for Write A Program
+ 7
but still I don't understand what you wanna to do in this program?
+ 5
is their number is being inputted by user?
+ 5
my answer was for programming field not for mobile phone technology.
+ 4
@Ajay:
My first impression of accronyme not in relation with mobile phone technologie, was right so ^^
+ 4
OK then,
+ 4
bye buddy
+ 3
What is the expected result?
The code run, but probably not as you would like ^^
At your 'if" statement, your condition is the comparison of an integer ( successively 'x in range(1,10)' ) versus an array of integers... You should compare to an element of the array probably.
Anyway, I don't see what's the purpose of the code... Do you attempt to find if a number is in a list?...
Oh no, I finally see: number 4 isn't in the list, and you want determine it: that"s the 'missing' Oo
Well, just change your condition to :
if (x in numb):
... which as the expected behaviour ( without "manually" iterate to compare x to each items of the array ), and change your print statement with 'x' instead of 'numb' in order to display the missing number instead of the list ;)
+ 2
@Sid:
What"s "WAP"?
+ 2
I better imagine the meaning of "missing number" and the purpose of the question with your link @Michelle, but don't still know what's "WAP" :(
+ 2
Thanks @Michelle ;)
+ 2
@Ajay:
Yes, but @Michelle answer was :P
+ 2
Don't you have a code to show us?
+ 1
WAP in which you have to find the missing number in an array of 1-100?
+ 1
@Ajay @Visp
WAP stands for Write A Programme and the number is missing from the array of 1-100?
+ 1
Have a look at your specific question regarding the missing number problem. There are answers
0
@visp
here is the code whats the error with it
numb=[1,2,3,5,6,7,8,9,0]
for x in range(1,10):
{
}
if (x==numb):
print("")
else:
print(numb,"the number is not in the list")
0
thanks