Question: 1. Write a function to keep asking the user for names in the form of strings, sort alphabetically and store these names into a text

1. Write a function to keep asking the user for names in the form of strings, sort alphabetically and store these names into a text file named names.txt

2.

Write a function that accepts a string as the argument, removes all alphabetical letters from the string, and returns it

3. Write a function that accepts a file name in the form of a string as the argument. Assume the text file contains single-digit numbers and letters. Read the entire contents of the text file and return two strings, one with numbers only, the another one with letters only

python

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!