Usetutoringspotscode to get 8% OFF on your first order!

  • time icon24/7 online - support@tutoringspots.com
  • phone icon1-316-444-1378 or 44-141-628-6690
  • login iconLogin

python assignment

Using a text editor like Windows Notepad or some other editor, create a new text file of the names of at least 10 different world languages. (Make sure to save the file as a .txt file.) Write each one down on a separate line, then save the file and name it world.txt. Do not worry about putting the languages in any kind of order. Simply write them down in the order they come to your mind.
Using the Python code examples in sections 15.1 through 15.3, replicate the steps of reading in the text file world.txt to a list then perform a linear search for a specific world language from your list of world languages.
In the same Python program above, create an insertion sort function as shown in section 17.3 that will utilize the list of world languages already read in from the world.txt file and then sort them alphabetically.
Once the list is sorted, print out all the elements in the list using a loop of some kind to verify the entire old list originally created by you in world.txt has been properly sorted.

Submitted a .txt file with 10 different languages, each one on a new line.
Submitted a python file that demonstrates:
A linear search for a specific world language.
An insertion sort function.
A print() command that shows how the list has been sorted in alphabetical order.

You can leave a response, or trackback from your own site.

Leave a Reply

Powered by WordPress | Designed by: Premium WordPress Themes | Thanks to Themes Gallery, Bromoney and Wordpress Themes