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 19:20
Terri needs to insert a cover page into her document. where should she go to access the commands to do so? o insert tab, objects group o insert tab, illustrations group o insert tab, pages group o insert tab, media group submit
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
1. which of the following is a search engine? a) mozilla firefox b)internet explorer c)google d)safari 2. which of the following statements is true? a) all search engines will provide the same results when you enter the same query. b) all search engines use the same amount of advertisements. c) some search engines are also browsers. d) search engines often provide different results, even when you enter the same query.
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Stops: using the information learned in this course, explain three things you will not do when driving. a. b. c. explain why you will not do these things when driving. starts: using the information learned in this course, explain three things you will do when driving. a. b. c. explain why you will do these particular things when driving. explain one thing you will stop doing as a passenger. explain one thing you will start doing as a passenger.
Answers: 3
question
Computers and Technology, 24.06.2019 07:20
Ingrid started speaking about her slide presentation. when she clicked to th"third slide, which had just a picture of an elephant, she forgot what she wassupposed to talk about. what could ingrid do to avoid this situation in thefuture? oa. print handouts for her audience.ob. add presenter's notes to each slide.oc. add a video to each slide.od. save her slide presentation to a flash drive
Answers: 2
You know the right answer?
Python programming questions:
1. assume the names variable references a list of strings. writ...
Questions
question
Mathematics, 13.10.2020 09:01
question
Mathematics, 13.10.2020 09:01
question
Mathematics, 13.10.2020 09:01
question
History, 13.10.2020 09:01
Questions on the website: 13722363