+ 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-
9 Réponses
+ 9
Thank you OBULIRAJ S, I miss this kind of small challenges here, nice one !
https://code.sololearn.com/cgyWHwlFxee4/#py
+ 5
https://code.sololearn.com/cC7sGXEupXS1/?ref=app
here is my code
+ 3
https://code.sololearn.com/cLN08DK7JfQ5/?ref=app
Modified hinanawi's code.
+ 3
+ 2
What if it's an input like
funny
balloon
+ 2
Nice asignment!
https://code.sololearn.com/cDzFYclFzbGw/?ref=app
+ 2
https://code.sololearn.com/c89MEm41E7Xq/?ref=app
0
What code don't work