def test() : # do not change this line!
values = [4, 7, 8, 9, -5] # do not change this line!

# write your code here so that it modifies values

# be sure to indent your code!

print(values)
return values # do not change this line!
# do not write any code below here

test() # do not change this line!
# do not remove this line!

Answers

Answer 1
I’m sorry this is unclear . What exactly do you need .

Related Questions

Shell Scripting:

In the following statement, X is the initial value:

for (( X = N; X <= Y; X++ ))
True or False

Answers

True because if x sucks x then Y will spill juice cream team juice what how ….its true.

Shell scripts are most useful for repetitive tasks that would take a long time to accomplish if entered one line at a time. A few examples of uses for shell scripts are as follows: automating the process of code compilation. Programming or setting up a programming environment. Thus, it is true.

What role of Shell Scripting in programming?

You can access the Unix system through a Shell. It leverages the input you provide to execute programs. Once a program has finished running, its output is shown. In the shell environment, we may run our commands, applications, and shell scripts.

Programmers do not need to switch to a completely other syntax because the command and syntax are precisely the same as those placed directly on the command line.

Therefore, it is true that Shell scripts may be created considerably more quickly. Rapid start interactive bug-fixing.

Learn more about Shell Scripting here:

https://brainly.com/question/29625476

#SPJ2

Write a program whose input is a character and a string, and whose output indicates the number of times the character appears in the string in c++

Answers

#include
#include

using namespace std;

int CountCharacters(char userChar, string userString){
int result = 0;
for(int i = 0;i if(userString[i] == userChar){
result++;
}
}
return result;
}

int main(){
string userString;
char userChar;
cin>>userChar>>userString;
cout< return 0;
}

You can change the ____ or position of text within a document's margins.
a. fielding
b. proportion
c. location
d. alignment​

Answers

Answer:

Alignment

Explanation:

That should be correct

You can change the alignment or position of the text within a document's margins. Thus, the correct option for this question is D. This is because it refers to the way text is arranged in the document between the margins.

What is alignment in a text?

Text alignment may be characterized as a type of paragraph formatting attribute that determines the appearance of the text in a whole paragraph. It is a term that describes how text is placed on the screen.

The changes in the text alignment are made by the following action:

Place the insertion point anywhere in the paragraph, document, or table that you want to align.Do one of the following: To align the text left, press Ctrl+L. To align the text right, press Ctrl+R. To center the text, press Ctrl+E.

Therefore, you can change the alignment or position of the text within a document's margins. Thus, the correct option for this question is D.

To learn more about Text alignment, refer to the link:

https://brainly.com/question/7512060

#SPJ2

how to get a cheap iphone

Answers

Answer:

Win a iphone or you can get spectrum for $19.99 a month

Explanation:

Your welcome and you're free to ask me anything when you need me!

Hope this helps!

-Kristy

codes python Coordinate Pairs pls helpComplete the distance function! It should take two arguments, each of which is a tuple with two elements. It should treat these tuples like points in a 2d coordinate plane. It should return the distance between them using the Pythagorean Theorem:1. Square the difference between the x values.2. Square the difference between the y values.3. Add the two squares.4. Take the square root of the result.In order to compute the square root of something, you need to use the sqrt function. This function belongs to a module in Python called math. The first line of the code provided imports this module, so that you can use the functions in it. To take the square root of a number, simply do something like the following:number = ...result = math.sqrt(number)You can also use the built-in Python function pow to take the square of a number, like this:number = ...square = pow(number, 2)

Answers

Answer:

the ansewer is I have no idea

This code calculates the distance between points (1, 2) and (4, 6) using the Pythagorean Theorem, which yields a result of 5.0.

A Python function that calculates the distance between two coordinate pairs using the Pythagorean Theorem:

```python

import math

def distance(point1, point2):

   # Unpack the coordinate pairs into variables

   x1, y1 = point1

   x2, y2 = point2

   # Calculate the squared differences between x and y coordinates

   x_diff_sq = pow(x2 - x1, 2)

   y_diff_sq = pow(y2 - y1, 2)

   # Add the squared differences and take the square root of the result

   distance = math.sqrt(x_diff_sq + y_diff_sq)

   return distance

```

You can use this function by passing two tuples representing the coordinate pairs as arguments. For example:

```python

result = distance((1, 2), (4, 6))

print(result)  # Output: 5.0

```

This code calculates the distance between points (1, 2) and (4, 6) using the Pythagorean Theorem, which yields a result of 5.0.

Know more about Pythagorean Theorem:

https://brainly.com/question/28361847

#SPJ5

(50 POINTS)
Write a repl program that does the following....
Asks the user to input their score for their science test (out of 100),
If the score is less than or equal to 50, print ("You failed, I think you need to study more"),
Elif the score is greater than 50, print ("You passed, well done!").
Else print, you have not selected the right number
Note that this does not need to be in a loop.

Answers

Answer:

nope ;v

Explanation:

Question 3 You are working with the ToothGrowth dataset. You want to use the skim_without_charts() function to get a comprehensive view of the dataset. Write the code chunk that will give you this view.

Answers

There are different kinds of chunk options. The code chunk  that will give me this view is  skim_without_charts(ToothGrowth)

This code chunk can gives me a comprehensive view of the dataset. When you look into the parentheses of the skim_without_charts() function, you will see the name of the dataset that you intended looking into/viewing.

The code is known to return or give a short detail with the name of the dataset and the number of rows and columns therein.

It also makes one to see the column types and data types that are found/ contained in the dataset. The ToothGrowth dataset is known to have 60 rows.

Learn more about Code Chuck from

https://brainly.com/question/25525005

What is the impact of Customer Centricity?

Answers

Customer-centric businesses generate greater profits, increased employee engagement, and more satisfied customers. Customer-centric governments and nonprofits create the resiliency, sustainability, and alignment needed to fulfill their mission.

How many types of windows does Python use?



a.
four


b.
five


c.
one


d.
two

Answers

Question;

How many types of windows does python use?

Answer;

A.Four

Window does python use is Four

Dean Smith is dissatisfied with the time it takes to get a new faculty ID made and believes more servers will speed up service and reduce costs thanks to shorter lines. Prof. Karen is tasked to study the situation. Prof. Karen observes an average of 20 customers/hr arriving and each technician (service window) serves 5 customer/hr, on average. Assume an M/M/s queue system. Prof. Karen calculates the operational cost of each server as $20/hr, and assumes a cost of waiting in the SYSTEM as $25/hr per customer. What is the optimal number of service windows to minimize total cost

Answers

The answer is :

X = 4

Explanation:

The optimal number of service windows to minimize total cost will be 5 service windows.

How to calculate the optimal value?

The optimal number of service windows to minimize total cost will be calculated thus:

Cost = 20x + 25(20 - 5x)

Cost = 20x + 500 - 125x

Cost = 500 - 105x

For the minimum cost,

500 - 105x = 0

105x = 500

x = 500/105

x = 4.76 = 5

Therefore, the optimal number of service windows to minimize total cost will be 5 service windows.

Learn more about cost on:

https://brainly.com/question/25109150

#SPJ2

Define the term loop rule.
The loop rule tells us that if we sum the blank
across all the components in a single closed path of an electrical network, the result is 0.

Answers

Answer:

voltage differences

Explanation:

Define technical writing. The proposal introduces the ……. (5 Mark)

a) Results b) Objectives c) Researcher d) None of the previous

Answers

Answer:

B.objective

#carryonlearning

What is a complete group of instructions known as in Scratch?
blueprint
program
sprite
code block

Answers

Answer:

I think it may be blueprint

Answer:

program

Explanation:

types of digital divide ​

Answers

Explanation:

introduction. desktop computer,tablet computer,storage devices such as flash drivers, mobile phone...

Get the user to enter some text and print it out in reverse order.

Answers

Answer:

strrev in c/c++

Explanation:

Matlab

K = 92

how do i do
AK= u * s * v'
with this value?

u = 1
s = 12.0048
v = 1

Answers

Answer:

Explanation:

AK = u*s*v

u = 1

s = 12.0048

v=1

K = 92

92A = 1 * 12.0048 * 1

92A = 12.0048             Divide by 92

A = 12.0048/92

A = .1304

Discuss your role as an IT professional in terms of your responsibility to clients, co-workers and society.

Answers

An IT professional is expected to deliver correct installations and programming that are safe from security breaches to clients. To co-workers, teamwork, respect, and brainstorming are needed to work together and achieve results. To society, an IT professional is expected to deliver architectures that do not compromise security and privacy.

An information technology professional could be focused on the hardware or software of systems. It is vital that IT professionals deliver services that are foolproof and not susceptible to attacks.

When working with colleagues, they must cooperate in order to deliver the most efficient services.

Learn more about IT professionals here:

https://brainly.com/question/14314381

You're researching a recent XSS attack against a web
application. The developer showed you the JavaScript code
used to sanitize and validate input in the browser; even if
you're not a coder, it seems like it would have prevented the
attack. What is the most likely reason the web application
was vulnerable? Choose the best response.

A. Client-side validation can be easily bypassed.
B. Input validation doesn't reliably protect against XSS
attacks.
C. Server-side validation can be easily bypassed.
D. The attacker performed an injection attack to bypass
input validation.

Answers

The most likely reason the web application  was vulnerable to a cross-site scripting (XSS) attack is: A. Client-side validation can be easily bypassed.

Cross-site scripting (XSS) attack can be defined as a security vulnerability through which malicious scripts are injected by an attacker into benign and trusted web application or website.

This ultimately implies that, a cross-site scripting (XSS) attack makes it possible for an attacker to inject malicious client-side scripts into benign and trusted web application or website that are viewed by others. Also, an XXS attack doesn't target server-side scripting languages such as:

PythonPHP

Generally, a cross-site scripting (XSS) is used by an attacker to easily bypass client-side validation and the "same-origin-policy" of web application or website, in order to gain unauthorized access to information.

Read more on XXS attack here: https://brainly.com/question/15979218

Building a String Library

Sometimes when programming you need to introduce a new data type and develop a library of functions for manipulating instances of that data type. Often this is done as methods on a new class but not always.

In this assignment, you'll be defining a collection of functions on strings, most of which already exist as methods on the str class. However, you should pretend that they don't already exist and define them as functions. Of course, you can't just use the existing methods. This will give you a bunch of practice on manipulating strings and also on defining functions.

In this assignment, you'll be defining a collection of functions on strings. You should define each of these as a new function with a function header as below. The description of each is in the comment supplied. Recall that strings are immutable, so you will have to return a new copy of the string for those that call for you to return a string. If you are returning the same string as the input, just return it; there is no need to make a new copy, and it wouldn't anyway.

The only string functions/methods to use:

ord, chr
indexing and slicing
append (i.e., ``+'')
len, in, not in
equality comparison (== or !=))
Looping over strings (while or for loops) and selection (if statements) are allowed. BUT You cannot convert the strings to other types such as lists.

Define each of the following functions, with semantics as indicated by the comment. In each of the following ch is a single character, str, str1, str2 are strings, and i is a non-negative integer. You do not have to validate the inputs, except as indicated; you can assume these types.

At least one question asks you to return two values. That really means returning a tuple (pair) of values. You do that as follows:

return value1, value2
This actually returns the pair (value1, value2). The caller can then assign the members of the pair to two variables:

x, y = pairReturningFunction() # assumes function returns a pair
z, w = (value1, value2) # assigning a tuple to 2 variables
If you like, you can use earlier functions in later ones, or define helper functions, though it shouldn't really be necessary. Note that some of these are trivial to write, while others are a bit harder. I have done the first one for you.

def myAppend( str, ch ):
# Return a new string that is like str but with
# character ch added at the end
return str + ch

def myCount( str, ch ):
# Return the number of times character ch appears
# in str.

def myExtend( str1, str2 ):
# Return a new string that contains the elements of
# str1 followed by the elements of str2, in the same
# order they appear in str2.

def myMin( str ):
# Return the character in str with the lowest ASCII code.
# If str is empty, print "Empty string: no min value"
# and return None.

def myInsert( str, i, ch ):
# Return a new string like str except that ch has been
# inserted at the ith position. I.e., the string is now
# one character longer than before. Print "Invalid index" if
# i is greater than the length of str and return None.

def myPop( str, i ):
# Return two results:
# 1. a new string that is like str but with the ith
# element removed;
# 2. the value that was removed.
# Print "Invalid index" if i is greater than or
# equal to len(str), and return str unchanged and None

def myFind( str, ch ):
# Return the index of the first (leftmost) occurrence of
# ch in str, if any. Return -1 if ch does not occur in str.

def myRFind( str, ch ):
# Return the index of the last (rightmost) occurrence of
# ch in str, if any. Return -1 if ch does not occur in str.

def myRemove( str, ch ):
# Return a new string with the first occurrence of ch
# removed. If there is none, return str.

def myRemoveAll( str, ch ):
# Return a new string with all occurrences of ch.
# removed. If there are none, return str.

def myReverse( str ):
# Return a new string like str but with the characters
# in the reverse order.
Expected output:

>>> from MyStringFunctions import *
>>> s1 = "abcd"
>>> s2 = "efgh"
>>> myAppend( s1, "e" )
'abcde'
>>> myCount( s1, "e")
0
>>> myCount( s1, "a")
1
>>> myCount( "abcabc", "a")
2
>>> myExtend( s1, s2 )
'abcdefgh'
>>> myMin( "" )
Empty string: no min value # Note the None doesn't print
>>> myMin( "zqralm" )
'a'
>>> myMin( "Hello World!" )
' '
>>> myInsert( "abc", 0, "d")
'dabc'
>>> myInsert( "abc", 2, "d")
'abdc'
>>> myInsert( "abc", 4, "d")
Invalid index # Note the None doesn't print
>>> myPop( "abcd", 1 )
('acd', 'b')
>>> myPop( "abcd", 0 )
('bcd', 'a')
>>> myPop( "abcd", 5)
Invalid index
('abcd', None)
>>> myFind( "abcdabcd", "a")
0
>>> myFind( "abcdabcd", "c")
2
>>> myFind( "abcdabcd", "f")
-1
>>> myRFind("abcdabcd", "d")
7
>>> myRFind("abcdabcd", "e")
-1
>>> myRemove( "abcdabcd", "a")
'bcdabcd'
>>> myRemove( "abcdabcd", "x")
'abcdabcd'
>>> myRemove( "abcdabcd", "d")
'abcabcd'
>>> myRemoveAll("abcabcabca", "a")
'bcbcbc'
>>> myReverse( "abcd" )
'dcba'
>>> myReverse( "" )
''

Answers

Code:

def myAppend( str, ch ):
# Return a new string that is like str but with
# character ch added at the end
return str + ch

def myCount( str, ch ):
# Return the number of times character ch appears
# in str.

# initiaalizing count with 0
count = 0

# iterating over every characters present in str
for character in str:
# incrementing count by 1 if character == ch
if character == ch:
count += 1

# returning count
return count


def myExtend( str1, str2 ):
# Return a new string that contains the elements of
# str1 followed by the elements of str2, in the same
# order they appear in str2.

# concatenating both strings and returning its result
return str1 + str2

def myMin( str ):
# Return the character in str with the lowest ASCII code.

# If str is empty, print "Empty string: no min value"
# and return None.
if str == "":
print("Empty string: no min value")
return None

# storing first character from str in char
char = str[0]

# iterating over every characters present in str
for character in str:
# if current character is lower than char then
# assigning char with current character
if character < char:
char = character
# returning char
return char


def myInsert( str, i, ch ):
# Return a new string like str except that ch has been
# inserted at the ith position. I.e., the string is now
# one character longer than before.

# Print "Invalid index" if
# i is greater than the length of str and return None.

if i > len(str):
print("Invalid index")
return None

# str[:i] gives substring starting from 0 and upto ith position
# str[i:] gives substring starting from i and till last position
# returning the concatenated result of all three
return str[:i]+ch+str[i:]

def myPop( str, i ):
# Return two results:
# 1. a new string that is like str but with the ith
# element removed;
# 2. the value that was removed.
# Print "Invalid index" if i is greater than or
# equal to len(str), and return str unchanged and None
if i >= len(str):
print("Invalid index")
return str, None

# finding new string without ith character
new_str = str[:i] + str[i+1:]

# returning new_str and popped character
return new_str, str[i]

def myFind( str, ch ):
# Return the index of the first (leftmost) occurrence of
# ch in str, if any. Return -1 if ch does not occur in str.

# finding length of the string
length = len(str)

# iterating over every characters present in str
for i in range(length):
# returning position i at which character was found
if str[i]==ch:
return i
# returning -1 otherwise
return -1


def myRFind( str, ch ):
# Return the index of the last (rightmost) occurrence of
# ch in str, if any. Return -1 if ch does not occur in str.

# finding length of the string
length = len(str)

# iterating over every characters present in str from right side
for i in range(length-1, 0, -1):
# returning position i at which character was found
if str[i]==ch:
return i
# returning -1 otherwise
return -1

def myRemove( str, ch ):
# Return a new string with the first occurrence of ch
# removed. If there is none, return str.

# returning str if ch is not present in str
if ch not in str:
return str

# finding position of first occurence of ch in str
pos = 0

for char in str:
# stopping loop if both character matches
if char == ch:
break
# incrementing pos by 1
pos += 1

# returning strig excluding first occurence of ch
return str[:pos] + str[pos+1:]

def myRemoveAll( str, ch ):
# Return a new string with all occurrences of ch.
# removed. If there are none, return str.

# creating an empty string
string = ""

# iterating over each and every character of str
for char in str:
# if char is not matching with ch then adding it to string
if char!=ch:
string += char
# returning string
return string

def myReverse( str ):
# Return a new string like str but with the characters
# in the reverse order.

return str[::-1]

Convert 12 bits to bytes​

Answers

Answer:

1.5 bytes

Explanation:

I byte = 8 bit ....

Question #2
Dropdown
Complete the sentence.
A_____
number is composed of only zeros and ones.

Answers

What are the answer choices? If none then i say "A prime

number is composed of only zeros and ones."

Answer: Binary

Explanation: Binary numbers use the base-2 numeral system (binary). This system uses only two symbols: "0" (zero) and "1".

Which of these are examples of an access control system? Check all that apply.
OpenID
44:13
OAuth
TACACS+
RADIUS
Expand
10. Question

Answers

The examples of an access control system include the following:

C. OAuth

D. TACACS+

E. RADIUS

An access control system can be defined as a security technique that is typically designed and developed to determine whether or not an end user has the minimum requirement, permission and credentials to access (view), or use file and folder resources stored on a computer.

In Cybersecurity, an access control system is mainly used to verify the identity of an individual or electronic device on a computer network, especially through authentication and authorization protocols such as:

OAuth: Open Authorization.TACACS+: Terminal Access Controller Access Control Server.RADIUS: Remote Authentication Dial-In User Service.

Read more on access control here: https://brainly.com/question/3521353

Each JavaScript command line ends with a(n) ____ to separate it from the next command line in the program.

Answers

The answer is :
semicolon (;)

Can anyone provide a good java program that shows how to implement a button?

Answers

no thanks, good luck though! <3

Answer:

Hello, this is Kyle Risso and I wrote a program for school not too long a go that can probably answer your question. This code creates two buttons that cycle through different colors.

Explanation:

The most important parts of the code are the ArrayList which implements the arrays for the different colors, but to answer your question the buttons are created using Action Listener as you'll see in the code. Hope this helps.

What is the term for the action of Brazil imposing tariffs on US imports in response to the imposed tariffs by the U.S. on Brazilian exports to the United States ?

A. Reclaiming
B. Retaliation
C.retribution

Answers

I think the answer is B.

__________ can collect information about credit card numbers.
a) Spyware
b) Virus
c)Trojan Horse
d) Worm​

Answers

Answer:

Spyware

Spyware collects your personal information and passes it on to interested third parties without your knowledge or consent. Spyware is also known for installing Trojan viruses. Adware displays pop-up advertisements when you are online.

Explanation:

Hope this helps !!

explain different users of computer in briefly?​

Answers

Answer:

The question is invalid; there are many types of computer user. Why on earth do you think there are five?

From the top of my head.

Casual- someone at home browsing the web, reading email.

IT Consultant. Advising people.

Software developer- writing software

Secretary - manages email for a company

Academic. Writing research papers.

Monitors. Monitor a computer system.

That’s six off the top of my head. There are probably a dozen more. So why do you think there are five?

You are given an integer N where 0 <= N <= 100, followed by another line of input which has a word W with length L where 1 <= L <= 50. Your task is to print N lines with the word W. The lines of your output should not have any trailing or leading spaces.

Your output lines should not have any trailing or leading whitespaces

Input

3
Hello


Output

Hello
Hello
Hello

Answers

import math as m

def print_word(N, W, retries = 4):

for _ in retries:

if(N > 100 or N < 0 or len(W) > 50):

print("Number is out of range or word is too large. Try again.")

new_word = str(input("New word: "))

new_num = int(input("New number: "))

if(new_num >= 0 and new_num <= 100 and len(W) <= 50):

for row in new_num:

print(new_word)

return "Thank you for your time!"

if(N >= 0 and N <= 100 and len(W) <= 50):

for row in N:

print(W)

return "Thank you for your time!"

try:

N = m.floor(int(input("Enter a number from 0 to 100: " )))

W = str(input("Enter a word: "))

except ValueError:

print("Invalid Input!")

print(print_word(N,W))

Following are the python program to print the input string value:

Program:

N= int(input("Enter a value of integer N (0 <= N <= 100): "))#defining an integer variable N that inputs integer value from the user-end

W = input("Enter the word W (length of 1 <= L <= 50): ")#defining a string variable W that inputs the value fom the user-end

for n in range(N):#defining a for loop that uses the range method with integer variable and prints the string value

   print(W)#printing the string value

Program Explanation:

Defining the an integer variable "N" that inputs an integer value from the user-end.In the next step, another variable "W" is declared that inputs the string value from the user-end.After input all the value a for loop is declared that uses the range method with integer variable and prints the string value.  

Output:

Please find the attached file.

Fin out more information about the program here:

brainly.com/question/24604692

How often do you trade cowoncy? If so, for what and how much?​

Answers

There are different ways to trade cowoncy. There are some legitimate site to buy and sell it. In trade cowoncy, about 100000 Cowoncy is bought for $17.89USD.

Cowoncy is commonly described as the OwO bot's form of currency. It is known as a currency used worldwide in hunting.

Its role is mainly for for hunting and in the activation of one's huntbot and it is often used in other form of purchases such as cosmetics, etc.

Learn more about trade from

https://brainly.com/question/17727564

5. What is intellectual property? (1 point)
Brainliest if correct

Answers

Answer:

intangible property that is the result of creativity, such as patents, copyrights, etc.

Please mark as brainliest

Answer:

A creative work of an invention, designs or names and images used in commerce.

Other Questions
how the development of the microscope played an important part in helping to convince people that mendel was right What is with simplifying -3p + 6p Identify the dotted lines as an angle bisector, perpendicular bisector, or a median Find the unknown side (w) of the rectangular solid. Please help.. 1. Which of the following shows the process of freezing?'A.candle wax cooling on the tableB.pouring cola over iceC. heating a cup of waterD. particles are speeding-up and colliding more Which law of motion uses the formula mass = force x acceleration? What is the difference between the colonial militia / American soldiers compared to the British soldiers a pair of shoes is 80 dollars they are %25 off. how much money is %25 of 80 dollars a ball of mass 0.15 kg is attached to one end of a string 1.10 m long. the ball moves in a horizontal circle with a speed of 12 m/s. determine the magnitude of the tension in the string please help me I'm begging please help me solve it Find the volume of the figure below. PLEASE HELP!! find the value of x. attached image. In America line 5, Whitman uses a metaphor to compare the United States to a mother. In your opinion, what is one way that the our country and a mother are similar? 100points & brainliest PLEASE TRANSLATE (answer the questions) - why does Carmen enjoy her math class?-which class does Carmen say that she does not like at all? Why did the framers of the U.S Constitution include this passage? A gardener measures the dimensions of a rectangular garden that is 9 meters wide by 12 meters long. If the gardener draws a blueprint of the garden, where each meter is equivalent toinch, which statements are true?Select ALL that apply.The area of the blueprint is square inchesThe area of the blueprint is 108 square inchesThe length of the blueprint is 6 metersThe perimeter of the blueprint is 28 inches.The width of the blueprint is 8 metersCalculator How much pizza will each person get if 4 people shareof a pizza equally?A)1/3 B)1/4 C)1/6 D)3/16 Find the equation of a line parallel to y = x + 8 that passes through the point(-3,3). Given the system of equations, what is the x-coordinate of the solution?y = 3 - x 1/23x + 4y = 1-1122-17/2 You have a box of fruit flies that are left untouched. The fruit fly population doubles every 3 hours. Would this equation be linear or exponential?Group of answer choicesExponentialLinear