Back

Python String Program

Created 1 year ago
108 Views
1 Comments
Janani666
@Janani666
Janani666
@Janani666Profile is locked. Login

You are given with a string which comprises of some numbers. Your task is to find the largest integer by converting the string to the corresponding integer.

Input Description:
First line contains n denoting number of Test Cases. The first and only Line of testcase has the string

Output Description:
Print the largest number

Code

Input:
India got independence on 15 august 1947. But they were fighting for it for last 90 years.
Expected Output:
1947
Actual Output:
90

Why I am not getting expected output?

Comments
Please login to comment.