+ 9

ASSIGNMENT

T String Pattern: Given two strings S1 and S2, the program must print the pattern as shown in the Example Input/Output section. Note: The string S1 always comes in the first row. The string S2 is printed along the last matching column of S1. Boundary Condition(s): 1 <= Length of S1, S2 <= 100 Input Format: The first line contains S1. The second line contains S2. Output Format: The pattern is printed as shown in the Example Input/Output section. Example Input/Output 1: Input: trophy panther Output: trophy ---a-- ---n-- ---t-- ---h-- ---e-- ---r-- Example Input/Output 2: Input: morning ninja Output: morning -----i- -----n- -----j- -----a-

3rd Jul 2018, 12:40 PM
OBULIRAJ S
OBULIRAJ S - avatar
9 Respuestas
+ 9
Thank you OBULIRAJ S, I miss this kind of small challenges here, nice one ! https://code.sololearn.com/cgyWHwlFxee4/#py
6th Jul 2018, 10:00 PM
Cépagrave
Cépagrave - avatar
+ 5
https://code.sololearn.com/cC7sGXEupXS1/?ref=app here is my code
3rd Jul 2018, 3:05 PM
Mr. Bot
Mr. Bot - avatar
3rd Jul 2018, 7:49 PM
hinanawi
hinanawi - avatar
+ 3
https://code.sololearn.com/cLN08DK7JfQ5/?ref=app Modified hinanawi's code.
3rd Jul 2018, 10:41 PM
Andre Daniel
Andre Daniel - avatar
6th Jul 2018, 3:15 PM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 2
What if it's an input like funny balloon
3rd Jul 2018, 1:29 PM
Andre Daniel
Andre Daniel - avatar
7th Jul 2018, 8:24 AM
Dragos
Dragos - avatar
+ 2
https://code.sololearn.com/c89MEm41E7Xq/?ref=app
8th Sep 2018, 7:26 PM
...
0
What code don't work
20th Nov 2020, 5:15 PM
Даня Багута
Даня Багута - avatar