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 21:00
The average cost of one year at a private college in 2012-2013 is $43,289. the average grant aid received by a student at a private college in 2012-2013 is $15,680.   what is the average student contribution for one year at a private college in 2012-2013?
Answers: 3
question
Computers and Technology, 23.06.2019 12:00
Which of these is an example of an integrated presentation? a. a table created in powerpoint b. an image pasted into powerpoint c. a caption created in powerpoint d. an excel chart pasted into powerpoint
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
The output voltage of a power supply is assumed to be normally distributed. sixteen observations are taken at random on voltage are as follows: 10.35, 9.30, 10.00, 9.96, 11.65, 12.00, 11.25, 9.58, 11.54, 9.95, 10.28, 8.37, 10.44, 9.25, 9.38, and 10.85
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
Jack is assisting his younger sibling mary with her mathematics assignment, which includes a study of the number system. jack explains to mary that whole numbers are counting numbers that could be used to record the number of fruits in a basket. which data type represents whole numbers? a.integers.b.floating-point numbers. c.strings.d.boolean
Answers: 1
You know the right answer?
Python programming questions:
1. assume the names variable references a list of strings. writ...
Questions
question
Mathematics, 04.05.2021 04:00
question
Mathematics, 04.05.2021 04:00
question
Mathematics, 04.05.2021 04:00
Questions on the website: 13722360