Question: Given a list of strings L, Write a python function that selects all strings ending with a digit and returns the selected strings as a

Given a list of strings L, Write a python function that selects all strings ending with a digit and returns the selected strings as a new list LL. Your program should print the original list L and the list LL containing the selected strings.

EXAMPLE:

['game3','class17','John','CSC4340','peter','23456']

['game3','class17', 'CSC4340', '23456']

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!