1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Alecsey [184]
3 years ago
14

Write a program that reads an integer, a list of words, and a character. The integer signifies how many words are in the list. T

he output of the program is every word in the list that contains the character at least once. Assume at least one word in the list will contain the given character. Assume that the list of words will always contain fewer than 20 words.
Ex: If the input is:
4 hello zoo sleep drizzle z
then the output is:
zoo
drizzle
To achieve the above, first read the list into an array. Keep in mind that the character 'a' is not equal to the character 'A'.
Computers and Technology
1 answer:
MrMuchimi3 years ago
7 0

In python 3.8:

user_input = input().split()

x = user_input[0]

char = user_input[-1]

for w in range(1,int(x)+1):

   if char in user_input[w]:

       print(user_input[w])

I hope this helps

You might be interested in
A class that ______________ an interface must contain methods for all abstract methods in the interface. Otherwise, the class mu
WINSTONCH [101]

Answer:  A class that implement an interface must contain methods for all abstract methods in the interface. Otherwise, the class must be declared as abstract.

Explanation:

It is necessary to implement all the abstract method that are present in the interface. Basically, this is one of the rule of abstract method. As, abstract method is define as without any implementation.

If any class contain abstract method then, it must be declare as abstract. Therefore, if a class are not implemented an interface method then, it should be declare as abstract.    

8 0
2 years ago
When a peanut farmer adds value to his peanuts by turning them into creamy peanut butter, the farmer is engaging in which of the
Neporo4naja [7]

Answer:

The correct options are;

The security administrator makes sure to shred and properly dispose of any printed confidential information

The security administrator uses password-protected files and folders on his work computer

Explanation:

A company's policies as written in the employee manual, with regards to confidentiality, generally includes provisions and procedures on how to handle confidential information, including the requirement for the shredding of of printed confidential information that are to be disposed, such as information about the way the company operates, the earnings of the company and employee records

Password protection keeps confidential files and folders from being able to be accessed by people without the prerequisite authority, which ensures the confidentiality of the company's information is maintained.

3 0
3 years ago
Michael and Ryan are athletes. They use digital devices as they try to improve their performance and when they relax. They are t
Maksim231197 [3]

Answer:

Firstly if that device is allowed in that country. Going to another country can be cool, provided that the restrictions are known. Certain countries don't allow the sale or use of certain digital products. To be sure of that digital device is allowed, Michael and Ryan should check the custom services of that country

Secondly, is the setup of the didgital devices. For example, Michael wants to use a GPS in the event. Then he needs to be sure whether the GPS is compatible with the new country or not. There can be varius problems in the GPS, most notably the time and the location.

Lastly, if they are relaxing, say watching funny videos on TV language shouldn't be a barrier.

Explanation:

Hope this helps... pls vote as brainliest

4 0
3 years ago
Por favor alguien que me ayude con este taller :'(
Rainbow [258]

Answer

speak english man

Explanation:

7 0
3 years ago
It is the student’s responsibility to meet the expectations identified by a rubric.
Alja [10]

Answer:

True

Explanation:

6 0
2 years ago
Read 2 more answers
Other questions:
  • What happens when the computer is thrashing? quizzlet?
    12·1 answer
  • Finding information on the web was made easier by _____________, which provide on-screen menus, making navigation of the web as
    12·1 answer
  • An ______ search is when the buyer looks for information beyond personal knowledge to help make the buying decision, such as che
    10·1 answer
  • What port number is the web server listening on for the web request?
    9·1 answer
  • Which type of optical scanner works in a manner similar to a copy machine?
    15·1 answer
  • Which website is important for hacking
    13·1 answer
  • Which type of CPU instruction performs arithmetic calculations and stores the results in memory?
    14·2 answers
  • _____ emphasizes identifying and monitoring the sources of new technologies for an industry. Licensing Differentiation Environme
    9·1 answer
  • Part1) Given 3 integers, output their average and their product, using integer arithmetic.
    12·1 answer
  • Commercial technical data and commercial software:_________.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!