Answer:
Print 4 + 4
Explanation:
If you're writing this in the programming language called BASIC, this is how you would add any two numbers.
2. What is the implication of media killings in the Philippines?
Answer:
Throughout the clarification below, the description of the query is mentioned.
Explanation:
In the Philippines, the Implication of media indicates that perhaps the Philippines isn't a safe environment for reporters, and therefore more remains to be improved to change this pattern.But it didn't start underneath Duterte before you could even say that, as well as he didn't order strikes. If he had instructions in which he would criticize, for perhaps a long period presently Ressa had died as one of his other very resolute and influential media commentators.In order to restrict editing to a document, a user will go to Review, , Restrict Editing, and will then select what kinds of editing are allowed.
Answer: drafting
Explanation:
How many different values can a bit have?
16
2
4.
8
Answer:
A bit can only have 2 values
Look at the following assignment statements:
word1 = "rain"
word2 = "bow"
What is the correct way to concatenate the strings?
1 newWord = word1 == word2
2 newWord = word1 + word2
3 newWord = word1 * word2
4 newWord = word1 - word2
Answer: number 2 is the correct way to do it
Explanation:
Answer:
2 newWord = word1 + word2
Explanation:
Do any of these algorithms (Random Allocation, Round-Robin, Weighted Round-Robin, Round-Robin DNS Load Balancing, and Least Connections) compromise security?
Answer:
yes and
Explanation:
why do you need to know about a buildings security are you going to rob it ???
Complete the function favoriteFlower(). Note that the program will not run as is because the function is incomplete. The purpose of the function is to determine if the given flower is in the top three of my favorite flowers. The starter file defines a list of favorite flowers that is ordered most favorite to least favorite. Please pass the flower name and the flower list as arguments in the function. The expected output is:
Answer:
What Language? Once you respond with a comment, I will be happy to write the code for you. I write code 24/7 (Because I have nothing better to do), so I will wait for you to comment. Also is there any pre-existing code?
Explanation:
Select the correct answer.
David gets a new job as a manager with a multinational company. On the first day, he realizes that his team consists of several members from diverse cultural backgrounds. What strategies might David use to promote an appreciation of diversity in his team?
A.
Promote inclusion, where he can encourage members to contribute in discussions.
B.
Create task groups with members of the same culture working together.
C.
Allow members time to adjust to the primary culture of the organization.
D.
Provide training on the primary culture to minority groups only if there are complaints against them.
Answer:
A.
Explanation:
If we were to go with B, then it would exclude others from different cultures, doing what he is trying to.
If we went with C, then they wouldn't get along very well, because no one likes to be forced into a different religion.
If we went with D, he wants an appreciation, so training some people to change religions if there are complaints, is not going to cut it. Therefore, we have A. Which I do not need to explain.
Write a function called 'game_of_eights()' that accepts a list of numbers as an argument and then returns 'True' if two consecutive eights are found in the list. For example: [2,3,8,8,9] -> True. The main() function will accept a list of numbers separated by commas from the user and send it to the game_of_eights() function. Within the game_of_eights() function, you will provide logic such that: the function returns True if consecutive eights (8) are found in the list; returns False otherwise. the function can handle the edge case where the last element of the list is an 8 without crashing. the function prints out an error message saying 'Error. Please enter only integers.' if the list is found to contain any non-numeric characters. Note that it only prints the error message in such cases, not 'True' or 'False'. Examples: Enter elements of list separated by commas: 2,3,8,8,5 True Enter elements of list separated by commas: 3,4,5,8 False Enter elements of list separated by commas: 2,3,5,8,8,u Error. Please enter only integers.
Answer:
In Python:
def main():
n = int(input("List items: "))
mylist = []
for i in range(n):
listitem = input(", ")
if listitem.isdecimal() == True:
mylist.append(int(listitem))
else:
mylist.append(listitem)
print(game_of_eights(mylist))
def game_of_eights(mylist):
retVal = "False"
intOnly = True
for i in range(len(mylist)):
if isinstance(mylist[i],int) == False:
intOnly=False
retVal = "Please, enter only integers"
if(intOnly == True):
for i in range(len(mylist)-1):
if mylist[i] == 8 and mylist[i+1]==8:
retVal = "True"
break
return retVal
if __name__ == "__main__":
main()
Explanation:
The main begins here
def main():
This gets the number of list items from the user
n = int(input("List items: "))
This declares an empty list
mylist = []
This iterates through the number of list items
for i in range(n):
This gets input for each list item, separated by comma
listitem = input(", ")
Checks for string and integer input before inserting item into the list
if listitem.isdecimal() == True:
mylist.append(int(listitem))
else:
mylist.append(listitem)
This calls the game_of_eights function
print(game_of_eights(mylist))
The game_of_eights function begins here
def game_of_eights(mylist):
This initializes the return value to false
retVal = "False"
This initializes a boolean variable to true
intOnly = True
This following iteration checks if the list contains integers only
for i in range(len(mylist)):
If no, the boolean variable is set to false and the return value is set to "integer only"
if isinstance(mylist[i],int) == False:
intOnly=False
retVal = "Please, enter only integers"
This is executed if the integer contains only integers
if(intOnly == True):
Iterate through the list
for i in range(len(mylist)-1):
If consecutive 8's is found, update the return variable to True
if mylist[i] == 8 and mylist[i+1]==8:
retVal = "True"
break
This returns either True, False or Integer only
return retVal
This calls the main method
if __name__ == "__main__":
main()
An expression that returns a value is known as a
Answer:
In computer programming, a return statement causes execution to leave the current subroutine and resume at the point in the code immediately after the instruction which called the subroutine, known as its return address. The return address is saved by the calling routine, today usually on the process's call stack or in a register. Return statements in many languages allow a function to specify a return value to be passed back to the code that called the function.
An expression that returns a value is known as a function. Check more about function below.
What is a function?A function is often seen as a kind of expression or rule, or law that often tells more about a relationship.
Conclusively, a function is known to often returns a value back to the instruction that is known also to be the function. This is regarded as the differences that exist between a method and a function.
Learn more about function from
https://brainly.com/question/20476366
PLEASE HELP How have phones made us spoiled? How have phones made us unhappy?
In cell 14, calculate
the profit by
subtracting the
donation from the
streaming revenues.
Answer:
See Explanation
Explanation:
The question is incomplete as the cells that contains donation and streaming revenues are not given
So, I will make the following assumption:
H4 = Donations
G4 = Streaming Revenues
So, the profit will be:
Enter the following formula in cell I4
=(G4 - H4)
To get the actual solution in your case, replace G4 and H4 with the proper cell names