Question: Python: Given lines of input that ends with a blank line, count the total number of lines. And use alphanumeric order (ASCII Sort Order Chart)

Python:

Given lines of input that ends with a blank line, count the total number of lines.

And use alphanumeric order (ASCII Sort Order Chart) to find the smallest item and largest item.

Example input:

Panthera tigris

1111111

subfamily Crocodylinae2020

Kangaroo.html

Acinonyx.jubatus

# Can change these if you want

num_line = 0

smallest_item = " "

largest_item = " "

Code provided:

print("Smallest item:", smallest_item) print("Largest_item:", largest_item) print("Total number of lines:", num_line)

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!