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
suter [353]
2 years ago
7

Write a program whose inputs are two integers, and whose output is the smallest of the two values.

Computers and Technology
1 answer:
professor190 [17]2 years ago
3 0

Answer:

Explanation:

This can easily be done by using the min function, although since it's asking you to write a program to do this I would implement it like this:

def minimum(a, b):

   if a < b:

       return a

   else:

       return b

if a is less than b, then of course the minimum value if a. But if it isn't that means one of two things, a=b or b<a, either way b will still be the minimum value, since it never mentioned anything about returning something else if a=b.

You might be interested in
why does my Minecraft screen this "play and "settings" instead of the regular layout with singleplayer, multiplayer, and options
ratelena [41]

Answer:

Are you Minecraft Java or Minecraft Bedrock?

Are you updated to the latest Firmware?

8 0
3 years ago
Read 2 more answers
1. Give one reason why data is represented in binary in a computer
Ronch [10]

Answer:

The circuits in a computer's processor are made up of billions of transistors . A transistor is a tiny switch that is activated by the electronic signals it receives. The digits 1 and 0 used in binary reflect the on and off states of a transistor.

Explanation:

i learned this last year

4 0
4 years ago
Trailer nodes at the end of the list should contain avalue ____ than the largest value in the dataset.
omeli [17]

Answer:

b. larger

Explanation:

Trailer nodes at the end of the list should contain avalue larger than the largest value in the dataset.

4 0
3 years ago
Downlad the file and write a program named Lab10b_Act2.py that does the following: Opens the CSV file for reading Reads the CSV
a_sh-v [17]
他們會不會是因為這樣就是說他們的問題,他們會會覺得委屈覺得我
5 0
3 years ago
"last month, our sales rose when we increased prices by 15%, so we should raise our prices another 15% this month." which logica
LekaFEV [45]

In"last month, our sales rose when we increased prices by 15%, so we should raise our prices another 15% this month." the logical fallacy is Confusing a correlation for a cause-and-impact courting.

<h3>What is a logical fallacy?</h3>

A logical fallacy is a assertion that appears to be authentic till you observe the regulations of logic. Then, you recognize that it is not. Logical fallacies can regularly be used to deceive people – to trick them into believing something they in any other case wouldn't.

In many ways, the put up hoc ergo propter hoc fallacy is a particular subset of the fallacy in which a person might also additionally anticipate a causational courting from one that would simply be a wonderful correlation.

Read more about the fallacy :

brainly.com/question/1971023

#SPJ1

6 0
2 years ago
Other questions:
  • What happens if you never confirm your facebook account?
    8·1 answer
  • What is wrong with the following declaration? How should it be fixed?
    11·1 answer
  • Discuss the important role of remote sensing application in agriculture. Do you think that the use of remote sensing is applicab
    15·1 answer
  • What is the purpose of exploring data?
    6·2 answers
  • &lt;BUTTON TYPE="BUTTON" VALUE="SUBMIT"&gt;SUBMIT YOUR FORM&lt;/BUTTON&gt;
    7·1 answer
  • Firestick optimizing system storage and applications
    14·1 answer
  • which kind of system software tells the computer how to communicate with peripherals, such as a printer or scanner?
    7·1 answer
  • A__ is a part of a GUI that allows a specific type of interaction with the user.
    14·1 answer
  • 1. The opportunity to create several equations for launching program files is called
    5·1 answer
  • Which instructions are used to change the sequence of instruction execution? group of answer choices data movement operate contr
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!