subject

Python programming questions:
1. assume the names variable references a list of strings. write code that determines whether 'dale' is in the names list. if it is, display the message 'hello dale'. otherwise, display the message 'no dale'.
2. write a program that opens a specified text file then displays a list of all the unique words found in the file. hint: store each word as an element of a set.
3. write a program that reads the contents of a text file. the program should create a dictionary in which the keys are the individual words found in the file and the values are the number of times each word appears. for example, if the word "the" appears 128 times, the dictionary would contain an element with 'the' as the key and 128 as the value. the program should either display the frequency of each word or create a second file containing a list of each word and its frequency.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:50
Which of the following had the greatest influence on opening the internet to the generly public
Answers: 1
question
Computers and Technology, 22.06.2019 17:40
Gabe wants to move text from one document to another document. he should copy the text, paste the text, and open the new document highlight the text, select the cut command, move to the new document, make sure the cursor is in the correct location, and select the paste command select the save as command, navigate to the new document, and click save highlight the text, open the new document, and press ctrl and v
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
Which of the following is not an enhancement to the standard wiki to make it more attractive for corporations? encryptionwork spacespermission toolspredictive text
Answers: 2
question
Computers and Technology, 23.06.2019 17:30
Per the municipal solid waste report, what are the most common sources of waste (trash
Answers: 3
You know the right answer?
Python programming questions:
1. assume the names variable references a list of strings. writ...
Questions
question
Mathematics, 12.01.2020 02:31
question
Mathematics, 12.01.2020 02:31
question
Computers and Technology, 12.01.2020 02:31
Questions on the website: 13722359