Testing for solution("= apples bananas ^ bananas cherries\n- @ lemons pears\ncherries = bananas avocados\nbananas '", ['!', '-', '.', '?', '=']) It should work with random inputs too: "\ncherries\nbananas '" should equal "\n\ncherries\nbananas '"
Read the error messages and you will see your code has an issue with missing '\n'.
'\n'
Well this strings are of not 4 or 6 length if you try to print their length respectively, just try putting condition on length of string also
it's not missing x. vext include x.
Printing vs returning isn't the only problem there. Look where the second quote is in those error messages, the input of those tests isn't '1234' or '098765'
'1234'
'098765'
Not a kata issue. Return the result, not print it.
Loading collection data...
Read the error messages and you will see your code has an issue with missing
'\n'
.Well this strings are of not 4 or 6 length if you try to print their length respectively, just try putting condition on length of string also
it's not missing x. vext include x.
Printing vs returning isn't the only problem there. Look where the second quote is in those error messages, the input of those tests isn't
'1234'
or'098765'
Not a kata issue. Return the result, not print it.