Question: I need the code to be in python. I need all the test cases to be satisfied as mentioned. Need the code asap! 5 Challenge

5 Challenge Trailing String Programming challenge description: You are given two strings A and B. Print the number 1 if string B occurs at the end of string A. Otherwise, print the number 0. Input: Your program should read lines of text from standard input. Each line will contain two strings, A and B, separated by a comma. Output: For each input line, print the number 1 if the second string occurs at the end of the first string, or O if it does not, one digit per line. Test 1 Test Input Hello World, World Expected Output Test 2 Test Input h Hello HireVue, HireVue Expected Output 1 Test 3 Test Input San Francisco, San Jose Expected Output 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
