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 "---".
The first and second line of input are strings.
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
string_first = input()
string_second = input()
print(string_second)
print("---")
print(string_first)
Comments
Leave a comment