| Title |
User |
Message |
Place |
Date Posted |
| What did i do wrong |
43618418 |
I got 20/30 but after I checked my code I couldn't see what was wrong. Can someone tell me my problem? |
p129ex5 |
Jan 05, 2016 - 11:16:49 pm UTC |
| my code? |
Venkat24 |
So i have to change my input to a float? even when i use the str(round()) method it still doesnt work, saying (line 8, type str does not define _round_. wait, what do you mean by "by casting input()... |
p287ex3 |
Jan 05, 2016 - 10:39:24 pm UTC |
| Re: my code |
spencereir |
Do note that they are reals, not integers. This would be significant in a language like C++ or Java. Your program handles negative numbers weirdly. I searched around a bit, and by casting input() to ... |
p287ex3 |
Jan 05, 2016 - 9:53:14 pm UTC |
| my code |
Venkat24 |
i tried my code and it easily worked on ideone. When i put it here, it gives me -0.03 and says its wrong. |
p287ex3 |
Jan 05, 2016 - 9:26:52 pm UTC |
| Re: Question |
DeboTessie |
ohhhhhhhhhhhh.... ok.... thanks!!! |
ccc10j1 |
Jan 05, 2016 - 9:05:45 pm UTC |
| Re: Question |
spencereir |
Do you have 7 fingers on your right hand? :^) |
ccc10j1 |
Jan 05, 2016 - 2:10:59 am UTC |
| Re: Question |
DeboTessie |
Why is it marking me wrong when I say that you can only make 7 4 times? The combinations are clear! 0 and 7, 1, and 6, 2 and 5, 3 and 4!! Is there something wrong with the format that I am putting it... |
ccc10j1 |
Jan 05, 2016 - 1:56:39 am UTC |
| Re: Question |
spencereir |
You aren't printing the right answers. Remember that 4 on the left hand and 2 on the right is the same as 2 on the left hand and 4 on the right |
ccc10j1 |
Jan 04, 2016 - 2:29:35 am UTC |
| Question |
DeboTessie |
Something is obviously wrong with my code... can you tell me what's wrong?? It would be much appreciated!! |
ccc10j1 |
Jan 04, 2016 - 12:42:36 am UTC |
| Re: problem in code |
spencereir |
You need double quotes around strings. a="RED", not a=RED |
wc151j1 |
Jan 03, 2016 - 8:16:35 pm UTC |