Google Kick Start: Input/Output problem | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

1st Nov 2019, 3:40 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
5 Answers
+ 6
Ace that was the solution, the version they use is python3.5, and it doesn't support f strings, thanks!
1st Nov 2019, 5:06 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 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.
1st Nov 2019, 4:06 PM
Lothar
Lothar - avatar
+ 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?
1st Nov 2019, 5:13 PM
Lothar
Lothar - avatar
+ 3
Lothar yes, that's what I just realized too, thanks!
1st Nov 2019, 5:14 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
Lothar I'm not talking about playground, Iam talking about Google's playgroud, they do support looped input
1st Nov 2019, 4:33 PM
Aymane Boukrouh
Aymane Boukrouh - avatar