Answer:
The program in Python is as follows:
mylist = []
nword= "y"
while(nword== "y"):
word = input(": ")
mylist.append(word)
nword = input("New word: y/n: ")
for item in mylist:
freq = mylist.count(item)
print(item, freq)
Explanation:
This creates an empty list
mylist = []
This is used to let the user input more word or stop input
nword = "y"
The following iteration lets the program read words from the user
while(nword == "y"):
This gets the user input
word = input(": ")
This appends the inputted word into the list
mylist.append(word)
This prompts if the user wants to input more word or not
nword = input("New word: y/n: ")
This iterates through the list
for item in mylist:
This gets the frequency of each word in the list
freq = mylist.count(item)
This prints the word and the frequency
print(item, freq)
Answer:
The correct answer is Option 3: "Select Service"
You have to select "Service" in the Second Step.
Only after that, you'll be able to name the Service in the following step.
Other options are invalid for a given question.
In this question, when Lilyana write a program to calculate the area, <em><u>she forgot to call the method</u></em> that's why it will not give any output. so, complete code with the output can be defined as follows:
Program Explanation:
- Defining a method "area" that takes two variables "length, height" in the parameters.
- Inside the method, a variable "area" is declared that calculates the area by multiplies "length and width".
- After calculating the area a return keyword is used that returns its value.
- Outside the method, a print method is declared that calls the area method by accepting value into its parameters.
Program:
def area(length, height):#defining a method area that takes two parameters "length, height"
area = length * height#defining a variable area that calculates the area by multiplies length and width
return area#using return keyword that returns area value
print(area(6,8))#using a print method that calls area method by accepting the value
Output:
Please find the attached file.
Learn more:
brainly.com/question/8908120
Answer: It's random. But if your'e doing ranked then they place you with people near your level/rank.
Explanation:
Answer:
To be completely honest, this is a question that you and only you can answer really. You were the one that took the class and we cant reflect on your thoughts for you. I'm not trying to be one of those people, but its the truth.
Explanation: