| Title |
User |
Message |
Place |
Date Posted |
| My code |
Venkat24 |
on my code it works perfectly on ideone but here it gets 70/90. Can anyone help me? |
ccc15j1 |
Jan 10, 2016 - 1:12:32 am UTC |
| Re: code |
Butane |
Did you mix tabs and spaces in your code? python interprets them as different indentations, so pick one to use only. Also just as a tip, if the problem tells you that the input will have integers less... |
ccc07j1 |
Jan 10, 2016 - 12:47:31 am UTC |
| code |
Venkat24 |
When i input my code in ideone, it says if a |
ccc07j1 |
Jan 10, 2016 - 12:37:04 am UTC |
| Re: My code...:( |
jargon |
Traceback (most recent call last): File "a.out", line 5, in while n >=2 and start |
primes1 |
Jan 09, 2016 - 10:05:44 pm UTC |
| Re: Re: Help |
jargon |
Previous poster: I suggest you take this to your PEG leaders. I've taken over this comment to hopefully save you from retribution. Quick note: I for one believe in rehabilitation. I don't really care... |
ccc11s1 |
Jan 09, 2016 - 5:15:04 pm UTC |
| My code...:( |
Venkat24 |
My code isnt working. Please help |
primes1 |
Jan 09, 2016 - 5:12:46 pm UTC |
| Re: my code? |
Venkat24 |
thanks! |
p287ex3 |
Jan 06, 2016 - 10:59:22 pm UTC |
| Re: my code? |
jargon |
It seems you are fundamentally misunderstanding the suggestion. 1. input() returns a string. 2. float(input()) casts said string to a float (aka a double or a real). 3. int(input()) casts said string... |
p287ex3 |
Jan 06, 2016 - 9:20:56 am UTC |
| Re: What did i do wrong |
spencereir |
Does your program pass the sample inputs? From what I see, running it on sample input 2 should tell you your issue. |
p129ex5 |
Jan 05, 2016 - 11:32:16 pm UTC |
| Re: my code? |
spencereir |
float(input()) instead of input() made it work for me |
p287ex3 |
Jan 05, 2016 - 11:29:26 pm UTC |