Question: please give me python sol as fast as i will directly accept Ur questn Example 1: input1: UN was established on 24-10-1945. India got freedom
please give me python sol as fast as i will directly accept Ur questn

Example 1: input1: UN was established on 24-10-1945. India got freedom on 15-08-1947. Output: 2 Explanation : 2 distinct years, 1945 and 1947 have been referenced Example 2: input1: Soon after the World War 2 ended on 02-09-1945, the UN was established on 24-10-1945 Output: 1 Explanation : Only 1 distinct year, Le., 1945 has been referenced
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
