+ 2
Jungle Camping - Code Coach Issue
Hi! Could anyone give me advice on solving Code Coach’s Jungle Camping task? I’ve tried my best but still for no avail. 4/5 tasks completed with my code (having issue with task #3). The code is pinned to the post (python). Thanks in advance. https://code.sololearn.com/c08H04A0O9W5/?ref=app
5 ответов
0
For one, chirp is misspelled
+ 2
it is perfectly fine right now.
you can lose the str() at input()
all input in Python is always a string so no need to type cast it from string to string ;)
for doing these shorter exercises it is fine to use variables such as n and o
but it is good practice to give them proper variable names.
right now it doesn’t matter, but when your code grows in length, or when coming back to code after some time, or when working together with others, variable naming will be key
+ 1
Oh god, i’m blind.
Thank you, Peter.
Btw, since i’ve asked anyway, how can i improve this code?
Was it solved adequately?
Just started with programming.
+ 1
I highly appreciate your advices. Glad that i’ve done it right.
Thanks, Brave Tea!
0
You can use empty list to store the answer and then use (join)