0
Why can't this work ??
x=1 A=0 B=0 n=input ("n") while x<=int(n): A=A+10^(4-x) B=A+10^(3-n) x=x+1 print (A,B)
10 Answers
+ 6
i posted it look in my codes it is called test
+ 3
n is a string "n" and u cannot convert "n" to a decimal number. Replace the "^" by "**"
+ 3
n has to be a number to compare it try to specify it as an int or a float try it at your pc
+ 3
should i post a code?
+ 3
it would be nice i u could upvote my code :) and your welcome
0
then what should I do to compare x to n ?
0
can u please show me how... thank u so much...
0
that'll be awesome
0
oh I got it thank u !!!
0
Sorry there... I got a very embarrassing problem. Could u check if you had switched the code into "public"? Cuz I can't find it...