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
Sophie [7]
2 years ago
13

Ready to attempt the final challenge? Supply the 3 passwords you received via the first 3 challenges to proceed! Password from c

hallenge #1 (all lowercase): Password from challenge #2 (all lowercase): Password from challenge #3 (all lowercase):
Computers and Technology
1 answer:
Leya [2.2K]2 years ago
5 0

Using the knowledge in computational language in python it is possible to write a code that through a list manages to organize the largest and smallest numbers in order.

<h3>Writting the code in python:</h3>

<em># finding largest in the list</em>

<em>list_max = challenge3[0]</em>

<em>for i in range(len(challenge3)) :</em>

<em>    if challenge3[i] > list_max :</em>

<em>        list_max = challenge3[i]        </em>

<em>print("largest in the list = ", list_max)</em>

<em># number of times largest occurs in list</em>

<em>max_count = 0</em>

<em>for i in range(len(challenge3)) :</em>

<em>    if challenge3[i] == list_max :</em>

<em>        max_count += 1        </em>

<em>print("number of times largest occurs in list = ", max_count)</em>

<em># finding second largest in the list</em>

<em>list_sec_max = challenge3[0]</em>

<em>for i in range(len(challenge3)) :</em>

<em>    if challenge3[i] > list_sec_max and challenge3[i] < list_max :</em>

<em>        list_sec_max = challenge3[i]        </em>

<em>print("second largest in the list = ", list_sec_max)</em>

<em># number of times second largest occurs in list</em>

<em>sec_max_count = 0</em>

<em>for i in range(len(challenge3)) :</em>

<em>    if challenge3[i] == list_sec_max :</em>

<em>        sec_max_count += 1        </em>

<em>print("number of times second largest occurs in list = ", sec_max_count)</em>

<em># location of first occurence of largest in the list</em>

<em>first_index = -1</em>

<em>for i in range(len(challenge3)) :</em>

<em>    if challenge3[i] == list_max :</em>

<em>        first_index = i</em>

<em>        break        </em>

<em>print("location of first occurence of largest in the list = ", first_index)</em>

<em># location of first occurence of largest in the list</em>

<em>last_index = -1</em>

<em>for i in range(len(challenge3) - 1, -1, -1) :</em>

<em>    if challenge3[i] == list_sec_max :</em>

<em>        last_index = i</em>

<em>        break        </em>

<em>print("location of first occurence of largest in the list = ", last_index)</em>

See more about python at brainly.com/question/13437928

#SPJ1

You might be interested in
Which button do you use to put data in a specific order
3241004551 [841]
<span>arrange a list of names in alphabetical order, compile a list of product inventory levels from highest to lowest, or order rows by colors or icons</span>
8 0
3 years ago
What's the best way to change the font size of all your notes pages at once?
defon
On which os? mac os windows linux?
7 0
3 years ago
Daphne used to work in the city where she would take public transportation to work. However, she just took a new job in the subu
mr Goodwill [35]

Answer:

A need

Explanation:

Daphne has no choice but to get a car and a house immediately, she relocates. Anything that is a choice and gives you the desire to acquire it, but cannot, due to one reason or the other, is a want. A need, on the hand, is something that Daphne should have to survive. She will need a car and a house to stay alive and will obviously not do anything without them. A home and a car are physical needs that can be touched or measured while aspects like happiness and good health are subjective needs that we need as humans to survive.

4 0
3 years ago
What came first, the internet or WIFI?
horsena [70]

Answer: wifi

Explanation:

because you can't have the internet if you don't have wifi to power it up

4 0
3 years ago
What are some good reasons for using Linux in a corporate environment? (Choose all that apply.) a. Linux software is unlikely to
ella [17]

Answers:

A, B, and C.

Explanation:

a. Linux software is unlikely to become abandoned by its developers.

Linux is Open Source, this means that the source code is free and public. Any user or developer can read and contribute by fixing bugs or adding new functionalities, and does not relies on a single group or company.

b. Linux is secure and has a lower total cost of ownership than other operating systems.

Most distributions are totally free to download, install and use for both individual and corporate use, so no licences must be paid. Also the community provides excellent support to questions and issues.

c. Linux is widely available for many platforms and supports many programming languages.

There are multiple distributions designed for practically every platform (personal computers, servers, mobile devices, etc.). Functionalities can can be extended by adding packages, for example, to support different programming languages, like C, Java, Python, and many others, making the system extremely versatile.

d. Most Linux software is closed source.

This one is NOT correct, as is opposite to the "open source" explanation given in a.

8 0
4 years ago
Other questions:
  • What are 7 key traits for knowing your audience
    6·2 answers
  • In a particular jurisdiction, taxi fares consist of a base fare of $4.00, plus $0.25 for every 140 meters traveled. Write a func
    11·1 answer
  • With the evolution of RFID instead of UPC, how will this capability make the production grow and improve inventory and security?
    9·1 answer
  • A pangram is a sentence that contains all the letters of the English alphabet at least once. For example, the quick brown fox ju
    6·1 answer
  • Complete the GiftCard class shown below. A GiftCard keeps track of the current balance on the card. A gift card starts with a be
    11·1 answer
  • C. Compare Mainframe and Minicomputers with their key features<br><br><br><br>plzzz help ​
    12·1 answer
  • Calculate how much disk space (in sectors, tracks, and surfaces) will be required to
    14·1 answer
  • How is net pay different from gross pay?
    11·1 answer
  • A co-worker is called away for a short errand and leave the clinical PC logged onto the Confidential Information System. You nee
    9·1 answer
  • Study the graph and answer the questions. The numbers on the left side of the graph are in thousands.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!