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
tamaranim1 [39]
3 years ago
9

Define a Python function named sortIt with 1 parameter. This parameter will be a list. Your function should use list's built-in

function to organize its entries from smallest to largest. Because the built-in function reorders a list's entries "in place", your function must not return anything.
Computers and Technology
1 answer:
SpyIntel [72]3 years ago
4 0

Answer:

Following are the code to this question:

def sortIt(l): # defining a method sortIt

   l.sort() # Using Sort method

   return l #return list value

l= [55,66,23,10,12,4,90] #defining a list and assign a value  

print (sortIt(l)) #call the method and print its return value

Output:

[4, 10, 12, 23, 55, 66, 90]

Explanation:

The description of the above python code can be given as follows:

  • In the first step, A method "sortIt" is declared, that accepts a list in its parameter, inside the method an inbuilt method, that is "sort()" is used.
  • This method is used to arrange all the data into ascending order. This method takes a list that is "l" and convert all value ascending order, and return its value.
  • In the last step, the list "l" is defined, that stores number and pass into the method, and print is the return value.
You might be interested in
A _______ is a host that runs software to provide information, such as web content, to other hosts.
kolezko [41]

Answer:

The correct answer to the following question will be "Server".

Explanation:

  • Any device with a network connection is a host, but only hosts which accept other device connections (climates) are Servers.
  • All servers were hosts, but the servers aren't all hosts.
  • Each host network is a node, however not all network nodes are a host. Networking hardware such as modems, hubs, and network switches are not necessarily network addresses allocated (except for administrative purposes sometimes).
8 0
4 years ago
Which type of software is the most similar to database software?\
kykrilka [37]
The answer is graphics
5 0
4 years ago
Must be at least 6 characters and contain at least one letter, one number and one special character. whats a good password? ive
Kamila [148]
Things about you or your favourite specialities
3 0
3 years ago
Notice that the iris.target array contains 3 different labels. Create a plot that you think is interesting using the data from t
Alexeev081 [22]

Answer:

from sklearn.datasets import load_iris

import seaborn as sns

import pandas as pd

data = load_iris()

final_data = data.data[:]

final_data = pd.DataFrame(final_data)

final_data.columns = ['SepalLengthCm', 'SepalWidthCm', 'PetalLengthCm', 'PetalWidthCm']

species = data.target[:]

final_data['Species'] = species

sns.pairplot(final_data, hue='Species')

Explanation:

8 0
3 years ago
Which protocol that runs on cisco routers shares information between cisco devices?
just olya [345]
The CDP protocol runs on CISCO routers and shares information between CISCO devices. CDP stands for Cisco Discovery Protocol. It is a protocol on Layer 2 (Data -Link layer) of the OSI model that enables CISCO devices to share information between them. The information includes for example the <span>operating system version and IP address.</span>
6 0
3 years ago
Other questions:
  • What do you call the combination of title, description, tags, and thumbnail?
    6·1 answer
  • When you choose the ____ compression setting, photos are compressed to the resolution specified on the advanced tab in the power
    13·2 answers
  • Write code to print the location of any alphabetic character in the 2-character string passCode. Each alphabetic character detec
    10·1 answer
  • Which is the MOST efficient means of disentangling passengers from a wrecked​ vehicle? A. Remove the steering wheel and column.
    10·1 answer
  • Ignorance of policy is a legal excuse for an employee. TRUE or FALSE
    11·1 answer
  • What does the somaliland high population density <br>​
    15·1 answer
  • .Write a program that reads in the length and width of a rectangular yard (in meters) and the length and width of a rectangular
    15·1 answer
  • 2. How would you categorize the software that runs on mobile devices? Break down these apps into at least three basic categories
    10·1 answer
  • Assume variable age = 22, pet = "dog", and pet_name = "Gerald".
    6·1 answer
  • A(n) ________ portal offers a personalized, single point of access through a web browser to employees located inside and outside
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!