Question: Python Question Please type the code in .py file and sumit the screenshot of the code and screenshot of the code running. Assume s is
Assume s is a string of numbers. Write a program that prints the longest substring of s in which the numbers occur in ascending order and compute the average of the numbers found. For example, if s = '561984235270135785310', then your program should print Longest substring in numeric descending order is: 013578 Average: 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
