Answer to Question #227200 in Python for kaavya

Question #227200

Print in Reverse Order - 2

You are given two strings as input. Write a program to print the given two strings in reverse order separated by "---".

Input

The first and second line of input are strings.

Explanation

In the example, the given strings are

Apple, Banana. So now we have to reverse the order of strings to Banana, Apple and add a separation line between the two strings.

So the output should be


Banana

---

Apple


Sample Input 1

Apple

Banana

Sample Output 1

Banana

---

Apple

Sample Input 2

Car

Bike

Sample Output 2

Bike

---

Car




1
Expert's answer
2021-08-18T11:19:38-0400
string_first = input()
string_second = input()
print(string_second)
print("---")
print(string_first)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS