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
Alex Ar [27]
3 years ago
7

What do we do to a Python statement that is immediately after an if statement to indicate that the statement is to be executed o

nly when the if statement is true?
Social Studies
1 answer:
Anastasy [175]3 years ago
8 0

Answer:

Indent the line below the if statement

Explanation:

In python,

<expr> is an expression evaluated in Boolean context,

<statement> is a valid statement, which must be indented.

If <expr> is true then <statement> is executed. If false, <expr> , the <statement> is skipped over and is not executed.

An example of such statements is:

>>> num_1 = 3

>>> num_2 = 6

>>> if num_1 < num_2:                            

...     print('yes')

This statement is true and will be printed. However, if the statement were to be false, that is :

>>> if  num_1 > num_2:                          

...     print('yes')

This statement is skipped over and will not be executed.

You might be interested in
Can someone please explain the topic nationalism
Delvig [45]
Nationalism is a social, political, and economic system. Devotion, especially excessive or undiscriminating devotion, to the interests or culture of a particular nation-state. The belief that nations will benefit from acting independently rather than collectively, emphasizing national rather than international goals.
7 0
3 years ago
Paolo is training for a triathlon, a timed race that combines swimming, biking, and running. Consider the following sentence: Be
GalinKa [24]

Answer:

Many decisions are taken at the margin

Explanation:

Many decision are taken at the margin.

He makes small changes at the margin in the number of hours spent training on each activity.

Paola and his wife both realise that increasing time spend in the pool will decrease his total triathlon time.

His time is fixed (20hrs) and anytime he wants to spend extra on one activity, i means that he cannot spend time on another (this is known as opportunity cost).

They are both on the same page in terms of trying to improve Paolo's total time (exploiting opportunities to makes themselves better off).

1hour switch in Paolo's point of view isa major change, whereas his wife recommends a wholesale change.

Paolo realises that as he spends more time in the pool improving his swim time, his run and cycle times will take a hit. As he swims more, his improvement is likely to slow down, while spending less time on cycling and running will cost him more in terms of time.

Hence Paolo is looking at the margins.

His wife on the other hand, is not, she is ignoring the interaction, may be forgetting the ncreasing deterioration in terms of time of the other 2 legs

8 0
3 years ago
Lack of high quality connections is a strong predictor of death True or False
Brrunno [24]

Lack of high quality connections is a strong predictor of death True or False

Answer:

<h2>TRUE</h2>

Explanation:

Hope it helps:)

#LetsStudy

#BetterWithBrainly

5 0
3 years ago
in which countries has the politician assassination of politics candidates such as Benazir Bhutto undermined democracy processes
Vesna [10]
I believe the answer is: Pakistan
Benazer bhutto was the first ever female prime minister that took that position in a Muslim majority countries..
Due to some religious rule that required muslims to be lead by Men, many radical religious groups in that country conducted her assassination.
7 0
3 years ago
Which communication strategy would be most effective for a nurse to use during an assessment interview with an adult native amer
Keith_Richards [23]

The communication strategy that would be most effective for a nurse to use during an assessment interview with an adult native American patient is a Soft voice; breaking eye contact occasionally; general leads and reflective techniques.

Communication strategy are plans for communicating statistics related to selected trouble, occasion, situation, or audience. They function as the blueprints for communicating with the general public, stakeholders, or maybe colleagues.

as an example, in case you plan to engage with a new patron, you could reference the communication strategy to decide the goals and objectives for the verbal exchange. additionally, the strategy can define the specific target audience, key messages, and different essential details that make contributions to a successful advertising and marketing campaign.

A strategic communications plan needs to encompass an understanding of the target audience and the way you'll attain it; a mirrored image of beyond efforts and the way properly they worked; and what messages you need to supply to which audiences.

Learn  more about communication strategy here brainly.com/question/25940471

#SPJ4

3 0
2 years ago
Other questions:
  • Wendy read 2/10 of her book in Monday and 40/100 of her book on Tuesday. How much of her book has she read in total
    15·1 answer
  • Over the years of middle childhood, children who recognize prejudice and react by affirming _____ in their gender and background
    9·2 answers
  • A person asks you if you would volunteer to counsel delinquent youths at a detention center for one year. when you refuse, she a
    9·1 answer
  • Parents have very little control over their children. Discipline is lax.
    15·1 answer
  • Please Help Thank You
    7·1 answer
  • What was the purpose of the Troubled Assets Relief Program (TARP) in late 2008?
    8·1 answer
  • What is a major effect of scarcity in economic behavior? A.It decreases the amount of profit companies can make. B.It provides i
    12·1 answer
  • Define the word "cause"
    8·2 answers
  • What is the myth of western civilization
    9·1 answer
  • What did the United States gain from this section of the treaty that you just read? primary source tci
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!