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
Bogdan [553]
3 years ago
11

(PYTHON HOMEWORK)Given the following code snippet, which statement tests to see if all three sets are equal?:

Computers and Technology
1 answer:
wariber [46]3 years ago
8 0

Answer:

Option D is the correct answer to the following question.

Explanation:

The following option is correct because three sets type variable i.e., "fruit", "fruit2", "fruit3" has contain the same values in it and then they ask for the option is correct if the all are equal and in the option c, there is the if statement in which check the condition if the variable "fruit" is equal to the variable "fruit2" and the variable "fruit" is equal to the variable "fruit3".

so, that' why the following option is correct.

The option A is not correct because there is no equal function in python and we use the operator == to check the condition.

The option B is incorrect because we can see that there is not equal to (!=) operator.

The option D is incorrect because we can see that there is an or operator are used which means if any of the conditions is true then, they return either the other condition is false.

You might be interested in
Explique como são gravados (escrita) os bits zero ou um no HD.
rodikova [14]

Answer:

The following are the description of storing bits into Hard-disk.

Explanation:

As we know computer only know the binary language, that is in the form of zero's and once's "0's and 1's". In the hard drive, it requires a magnetically covered rotating disc, that's  "head" passes over its platter.

  • It marked 0's and 1's on the platter as tiny electronic areas in the north.
  • Its head goes to the very same location to read its information again, the north and south places pass there and assume from the 0s and 1s which are contained.

8 0
3 years ago
What is web based<br> What is local <br> What is mobile in computer
Radda [10]

Answer:

The mobile web refers to browser-based World Wide Web services accessed from handheld mobile devices, such as smartphones or feature phones, or a device. hope this helps :)

Explanation:

6 0
3 years ago
Which of the following options would enable you to block inheritance for a folder, retain all of the same permissions as the par
AfilCa [17]

Answer:

c

Explanation:

you have to open the file explorer and disable the inheritance permission on file folder, you will also have to access the security tab access advanced key and disable inheritance

6 0
3 years ago
Why is the ROUND function used in Excel? Group of answer choices to ensure that the values generated are always positive to ensu
777dan777 [17]

Answer:

The Microsoft Excel ROUND function returns a number rounded to a specified number of digits.

The ROUND function is a built-in function in Excel that is categorized as a Math/Trig Function. It can be used as a worksheet function (WS) in Excel. As a worksheet function, the ROUND function can be entered as part of a formula in a cell of a worksheet.

The syntax for the ROUND function in Microsoft Excel is:

ROUND( number, digits )

7 0
3 years ago
Read 2 more answers
Write a program with a method that plays the guess a number game. The program should allow the user to pick a number between 1 a
nlexa [21]

Answer:

Please check the explanation

Explanation:

That's the code and it is done with the program in c++ according to instructions given in the question using binary search. It can guess the correct number in 10 or fewer attempts and also shows the number of attempts it took to guess the number.

​ #include <iostream> using namespace std; int guess() { string input; int l = 1, h = 1000; int mid = (l + h) / 2, count = 0; while (1) { //count the number of attemts to guess the number ++count; //cout << count << "\n"; cout << "\n"; cout << "Is " << mid << " correct? (y/n): "; cin >> input; //if input is y print the guessed no. and return if (input == "y") { cout << mid << " guessed in " << count << " attempts!\n"; return 1; } //if input is n ask the user if it's higher or lower than current guess if (input == "n") { cout << "Is the number greater than or less than the number ? (h/l): "; cin >> input; } //if input is higher assign mid incremented by 1 to low //else decrement mid by 1 and assign to high if (input == "h") l = mid + 1; else h = mid - 1; //calculate mid again according to input by user again mid = (l + h) / 2; } } int main() { cout << "****WELCOME TO THE GUESS THE NUMBER GAME!****\n"; cout << "Guess any number between 1 to 1000.\n"; cout << "This game depends on user giving correct answers and not changing their number middle of game.\n"; guess(); } ​

8 0
3 years ago
Other questions:
  • Create a program in Matlab that prints the numbers from 1-100.
    11·1 answer
  • Which are valid double statements for java? double a = 0; double b = -1.0; double c = -425; double d = 6340; double e = -1.0; do
    12·2 answers
  • 5. Drawing Conclusions If you were a person in
    10·1 answer
  • Which of the following is not a method for opening Word software?
    8·2 answers
  • A server, also called a(n) _______________, operating system is a multiuser operating system because it controls a central compu
    6·1 answer
  • What is a GUI?
    11·1 answer
  • The Mohs scale is used to express which mineral property?
    15·1 answer
  • Suppose that a is a one-dimensional array of ints with a length of at least 2. Which of the following code fragments successfull
    8·1 answer
  • 2. How does the internet give us the ability to communicate?
    15·1 answer
  • What is operating system​
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!