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
ki77a [65]
2 years ago
15

Using Python Write an expression using Boolean operators that prints "Special number" if special_num is -99, 0, or 44.

Computers and Technology
1 answer:
Vinil7 [7]2 years ago
9 0

special_num = int(input())

if special_num == -99 or special_num == 0 or special_num == 44:

   print("Special number")

else:

   print("Not special number")

I wrote the code so that the user enters a number of their choice. Best of luck.

Solomonsdynasty60
2 years ago
Thanks Vinil7.... Now if I could just figure out the Sample output with input: 17 Not special number
Solomonsdynasty60
2 years ago
Thanks Vinil7.... Now if I could just figure out the Sample output with input: 17 Not special number
You might be interested in
In a binary search, _______________________________ . a. It is assumed that all of the elements are integers. b. It is assumed t
madam [21]

Answer:

d. It is assumed that the search pool is ordered.

Explanation:

A binary search/logarithimic search/half interval search/binary chop refers to search algorithm in computer science that sorts data in array in key:value arrangements. In order to locate a value in binary search, the key to the value in a sorted array is located. A binary search is characterized by an ascending, descending order arrangement of the array.

6 0
3 years ago
What is the proper citation for a video source? A. Video: Hank Aaron. Dir. Don Donto. VidCassette. 1985. DVD. Home Video, 1986.
VashaNatasha [74]
The answer it had to be B
6 0
3 years ago
What is it called when the system and all the components except for the real-time clock are powered down
Colt1911 [192]

Answer:

The correct answer to the following question will be "Mechanical off mode".

Explanation:

  • The device will appear to be either on or off to the user. No other states are measurable. The device does, however, support various power states that suit the power states specified in the ACPI specification. Such states also differ, like hybrid sleep and rapid startup. This subject discusses certain states and how they will be represented.
  • The system is completely off, and no power is used. Only after a full reboot will the machine return to working condition.
  • It is called mechanical off mode when the machine and all parts, except for the actual-time clock, are down powered.

Therefore, Mechanical off mode is the right answer.

8 0
3 years ago
Among the second-generation home console companies, which managed to come out on top?
marysya [2.9K]
The second generation of home consoles occurred from (1976-1988) at this time the most popular and consoled regarded as best was the Atari 2600
4 0
3 years ago
Write a method named numUnique that accepts a sorted array of integers as a parameter and that returns the number of unique valu
SVEN [57.7K]

Answer:

The method in Java is as follows:

public static int numUnique(int list[]) {  

int unique = 1;  

for (int i = 1; i < list.length; i++) {  

 int j = 0;  

 for (j = 0; j < i; j++) {

  if (list[i] == list[j])  

   break;  

 }

 if (i == j)  

  unique++;  

}  

return unique;  

}  

Explanation:

This line defines the numUnique method

public static int numUnique(int list[]) {

This initializes the number of unique elements to 1

int unique = 1;  

This iterates through the list

for (int i = 1; i < list.length; i++) {

The following iteration checks for unique items

 int j = 0;  

<em>  for (j = 0; j < i; j++) { </em>

<em>   if (list[i] == list[j]) </em><em>If current element is unique, break the iteration</em><em> </em>

<em>    break;  </em>

<em>  } </em>

 if (i == j)  

  unique++;  

}

This returns the number of unique items in the list

return unique;  

}  

3 0
2 years ago
Other questions:
  • Write a function analyze_text that receives a string as input. Your function should count the number of alphabetic characters (a
    5·1 answer
  • The open items on your computer are displayed here. menu bar open bar taskbar toolbar
    15·2 answers
  • Which address correctly represents one that is composed of two halves, one assigned to a network adapter manufacturer, and the o
    6·1 answer
  • Name and describe the two (2) broad categories of files
    9·1 answer
  • Need help with this​
    5·1 answer
  • Which device is responsible for converting the main electric supply into usable voltage levels inside a computer?
    12·2 answers
  • Applications of kinematics in computer engineering​
    7·1 answer
  • How does a modem work​
    13·1 answer
  • Select all correct statements below: Group of answer choices A redundant link's switch port will be blocked by STP until needed.
    6·1 answer
  • How do you organize texts and numerical data? ​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!