+ 1

Anyone there to help me out?

19th Jan 2017, 4:07 AM
sid
21 Risposte
+ 8
WAP stands for Write A Program
19th Jan 2017, 5:29 AM
Ajay Agrawal
Ajay Agrawal - avatar
+ 7
but still I don't understand what you wanna to do in this program?
19th Jan 2017, 5:29 AM
Ajay Agrawal
Ajay Agrawal - avatar
+ 5
is their number is being inputted by user?
19th Jan 2017, 5:31 AM
Ajay Agrawal
Ajay Agrawal - avatar
+ 5
my answer was for programming field not for mobile phone technology.
19th Jan 2017, 5:33 AM
Ajay Agrawal
Ajay Agrawal - avatar
+ 4
@Ajay: My first impression of accronyme not in relation with mobile phone technologie, was right so ^^
19th Jan 2017, 5:31 AM
visph
visph - avatar
+ 4
OK then,
19th Jan 2017, 5:36 AM
Ajay Agrawal
Ajay Agrawal - avatar
+ 4
bye buddy
19th Jan 2017, 5:36 AM
Ajay Agrawal
Ajay Agrawal - avatar
+ 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 ;)
19th Jan 2017, 11:31 AM
visph
visph - avatar
+ 2
@Sid: What"s "WAP"?
19th Jan 2017, 5:07 AM
visph
visph - avatar
+ 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" :(
19th Jan 2017, 5:20 AM
visph
visph - avatar
+ 2
Thanks @Michelle ;)
19th Jan 2017, 5:26 AM
visph
visph - avatar
+ 2
@Ajay: Yes, but @Michelle answer was :P
19th Jan 2017, 5:35 AM
visph
visph - avatar
+ 2
Don't you have a code to show us?
19th Jan 2017, 5:46 AM
visph
visph - avatar
+ 1
WAP in which you have to find the missing number in an array of 1-100?
19th Jan 2017, 4:29 AM
sid
+ 1
@Ajay @Visp WAP stands for Write A Programme and the number is missing from the array of 1-100?
19th Jan 2017, 5:44 AM
sid
+ 1
Have a look at your specific question regarding the missing number problem. There are answers
20th Jan 2017, 6:03 AM
CodingForFun
CodingForFun - avatar
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")
19th Jan 2017, 11:15 AM
sid
0
thanks
19th Jan 2017, 11:37 AM
sid