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

Python Question
 Python Question Please type the code in .py file and sumit
Please type the code in .py file and sumit the screenshot of the code and screenshot of the code running.

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!