A ____________ is a set of commands which can be run by calling it by name. (Phyton)

Answers

Answer 1
Answer:

A function: is a set of commands which can be run by calling it by name.

In Computer programming, a function refers to a group of organized, reusable set of commands (code) that are used to instruct a computer to perform a specific task i.e a single but related action.

Generally, a function receives or accepts data as an input, processes the data and then returns a single result or a set of results as the case may be.

Additionally, the name and arguments contained in a function must always be specified by a function. This makes it possible for a function to be run by a program by calling its name.

Read more: brainly.com/question/23838498


Related Questions

The "Brush Picker" is one of several items in the Options Bar of the BrushTool. true or false​
1.What are some examples of cyber crime?2. What is a computer virus? 3. What are some ways a computer can get a virus? 4. What are some things you can do to be safe on the internet?
Who produced the IR 600 system in 1978?a) Kawasaki Roboticsb) KUKAc) Unimated) AMF
7 features of QBASIC
What is autofill in a excel spreadsheet?

What is a trend line on a scatter plot? (1 point)Oa visual representation of the relationship between two variables
Oa line connecting only the highest and lowest values on a graph
O a line connecting all of the data points on a scatter plot
any line of data on a graph

Answers

Answer: C because a scatter plot is a graph with a line that passes through all of the variables. It does NOT compare/contrast 2 variables, but rather lots of them.  Also, scatter plots aren't specific as to including only the highest and lowestpoints on the graph.

Explanation:

how to create a program that prime number include arraylist , and if not print the prime factors of the number.

Answers

Answer:

import math

# Python program for presenting all the prime numbers till an agreed numeral

prime=[]

def findprimeinanarray(n):

   print("Prime numbers admid", 1, "and", n, "are:")

   j=0

   flag=0

   for n in range(1, n + 1):

  # all prime numbers are greater than

      if n > 1:

         for i in range(2, n):

          if (n % i) == 0:

              flag=0

              break

          else:

              flag=1

      if flag==1:

          prime.insert(j,n)

          j=j+1

      else:

          continue

   print(prime[:])        

# A Python function for printing all the prime functions and a Python program to print prime factor

prime1=[]

j=0

# A function to print all the prime factors of a given number if it is not prime

def primeFact(num):

while num % 2==0:

    prime1.insert(2,0)

    num = num/2

 

# num should be odd at this breakpoint

# so we need a shift of 2 ( i = i + 2)

for i in range(3,int(math.sqrt(num))+1,2):

 

 # while i divides num , print i ad divide num

 while num % i== 0:

  num = num /i

 if  num >2:

     j=j+1

     prime1.insert(num,j)

 

 

print(prime1[:])

 

# program to test the coderint

n=600

findprimeinanarray(7)  

k = 45

primeFact(k)

Explanation:

import math

# Python program for presenting all the prime numbers till an agreed numeral

prime=[]

def findprimeinanarray(n):

   print("Prime numbers admid", 1, "and", n, "are:")

   j=0

   flag=0

   for n in range(1, n + 1):

  # all prime numbers are greater than

      if n > 1:

         for i in range(2, n):

          if (n % i) == 0:

              flag=0

              break

          else:

              flag=1

      if flag==1:

          prime.insert(j,n)

          j=j+1

      else:

          continue

   print(prime[:])        

# A Python function for printing all the prime functions and a Python program to print prime factor

prime1=[]

j=0

# A function to print all the prime factors of a given number if it is not prime

def primeFact(num):

while num % 2==0:

    prime1.insert(2,0)

    num = num/2

 

# num should be odd at this breakpoint

# so we need a shift of 2 ( i = i + 2)

for i in range(3,int(math.sqrt(num))+1,2):

 

 # while i divides num , print i ad divide num

 while num % i== 0:

  num = num /i

 if  num >2:

     j=j+1

     prime1.insert(num,j)

 

 

Describe an application where a parallel circuit might work better than a series circuit

Answers

An application where you would prefer a parallel circuit over series would be a string of Christmas lights. If the light string is wired in parallel, when one bulb burns out, it would not effect the red of the string.
A parallel circuit may work better than a series circuit in an application with more than one objects receiving electricity. This way, if one of the objects cannot receive electricity and transmit it over, then there is another path for the electricity to follow.

What car is the fastest car in the world? I know what car it is but i'll give you a try

Answers

a labergine I guess I hope
Veyron super sport with a top speed of 267 mph recorded at volkswagen's ehra-lessein test track.

The related Veyron Grand Sport Vitesse is also the worlds fastest open-topped car, with a top speed of 254 mph.


Merging is when _____.

Answers

Answer: 2 lanes become 1

Explanation:

2 lanes become 1

Answer:

two things combine

Explanation:

Using the spreadsheet below, which formula can be used to determine Albert's hourly wage?2
1 Employee Hours Worked Amount Earned
2 Albert
$101.50
Brandon
19
$147.25
Callie
$164.45
Dora
$157.50
0-average(B2:C2)
O =average(C2:B2)
O =(C2/B2)
O =(B2/C2)​

Answers

Answer:

It will be average (B2:C2)

as it will select all the data between B2 and C2

B2/C2 ; average amount