+ 6
Google Kick Start: Input/Output problem
I'm trying to solve some Google Kick Start problems, but I can't seem to figure out what is the problem in my code. This is the attempt I did in Round B - 2018: No Nine problem (check code) When I try it in my computer, I get the exact same output, but it always outputs a Runtime Error when I submit it, anyone knows why ? I even asked on StackOverFlow but got no answer :/ https://code.sololearn.com/ckY2p9yfrHfi/?ref=app
6 Antworten
+ 6
Ace that was the solution, the version they use is python3.5, and it doesn't support f strings, thanks!
+ 5
i run the code in my IDE and it looks like it excutes properly:
4 # first input
10 2 # second input
Case #1: 0 # output
in playground it does not run properly, because second input is inside a for loop. this is not possible in playground.
+ 4
ok, i have excuted the code also in an older version (2.7) and it creates an error with the last line where you used an f-string. these are supported from 3.6. may be you can do a try by replacing f-string with regular output.
an other question: have you already checked the python version running in google playground?
+ 3
Lothar yes, that's what I just realized too, thanks!
+ 2
Lothar I'm not talking about playground, Iam talking about Google's playgroud, they do support looped input