+ 2
Bug in final code project of lesson 19 intermediate python course?
I wrote simple code who Just print input from back and lesson accept it in whole tests. Cant post image here
12 Antworten
+ 3
Vadim Korepanov
You have to print each character with new line in reverse order so do this:
def spell(txt):
for i in txt[::-1]:
print(i)
txt = input()
spell(txt)
+ 2
Vadim Korepanov
There was a bug in previous version of Sololearn so I think you don't have latest version of Sololearn.
+ 2
Vadim Korepanov
Ok now I got. Seriously there is a bug. Sololearn accepting both results.
We have to report it to SoloLearn. You can send mail with screenshot on info@sololearn.com.
+ 1
Vadim Korepanov
I don't think. Will you please share your code?
+ 1
A͢J - S͟o͟l͟o͟H͟e͟l͟p͟e͟r͟
)i know how i should to do it.
Post is not about it.
Lesson ask to do recursion and printing line by line each letter. But take as an answer my simply inverteed input. Post bout it. If it will help project it's good. Just it
+ 1
Ok thx. In midnight with one sleeped eye cant find bug sender)
0
Vadim Korepanov
Can you describe the bug and post your code here.
0
Vadim Korepanov
Is it spelling backwards using recursion?
0
def spell(txt):
txt = txt[::-1]
print(txt)
txt = input()
spell(txt)
0
Rik Wittkopp A͢J - S͟o͟l͟o͟H͟e͟l͟p͟e͟r͟
There is no recursion, Just invertion
0
Just i dont know how to print bugreoort here. Lol)