Join Without Starts
Sometimes you need to remove an extra helper character from the start of each piece before joining strings. Write a function non_start that takes two strings a and b, each with length at least 1. Remove the first character from each string and return their concatenation.
Примеры
Ввод
"Hello", "There"Вывод
"ellohere"Ввод
"java", "code"Вывод
"avaode"Ввод
"shotl", "java"Вывод
"hotlava"Нужно реализовать
def non_start(a: str, b: str) -> str:
Теги
strings
Conectează-te pentru a vedea istoricul soluțiilor trimise
Conectează-teConectează-te pentru a folosi Mentorul AI
Conectează-teVisible tests
1
Input
"Hello", "There"Expected
"ellohere"2
Input
"java", "code"Expected
"avaode"3
Input
"shotl", "java"Expected
"hotlava"4
Input
"ab", "xy"Expected
"by"5
Input
"Hello", "Hello, World!"Expected
"elloello, World!"6
Input
"Hello", "ab"Expected
"ellob"Focus radio
Paused · SomaFM · Fluid