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
When Nelson Mandela was tried for treason... A) he was not allowed in the courtroom B) the trial lasted 4 years C) he divorced h
zheka24 [161]
The answer is B, good luck
8 0
3 years ago
Read 2 more answers
Jack, Raj, Brenda, and Jamira have natural affinities for one another. They tend to work together, sit together, take breaks tog
ASHA 777 [7]

Answer:This is a friendship group

Explanation:

Friends mostly become friends because of the common things that they share between each other as a result of those similarities they find themselves enjoying doing things together.

Even though friends are not similar but because they share most similar interest and love for each other they mostly enjoy spending time together which may result into them doing things at the same time.

The word affinity tells us that they have a very strong relationship because of their similar qualities which is what most friends share and what keep them together at all times and so does these friends above.

3 0
3 years ago
Alice scored straight As in her class tests. As a reward for her hard work, her parents took her to her favorite amusement park
muminat

Answer:

reinforcement is the correct answer.

Explanation:

Alice scored well in her tests, so to reward her effort, her parents decide to take her to her favorite place, This is an example of reinforcement behavior which is shown by the Alice parents to cheer and encourage her.

Reinforcement behavior is the act of cheering and strengthening something.

Reinforcement is of two types:

  • Positive reinforcement: means appreciating and encourage the person when they do the desired work
  • Negative reinforcement:is the behavior that is encouraged by avoiding the negative consequence.
3 0
3 years ago
Read 2 more answers
Which country does NOT have a written constitution that includes citizens' freedoms?Immersive Reader
babymother [125]

Answer:

Nigeria

Explanation:

I Took the quiz and I Skipped a grade

8 0
3 years ago
Tyrone is seventeen years old. Under the Fair Labor Standards Act, he (Points : 5) cannot work in a hazardous occupation. cannot
Alex17521 [72]
Under the Fair Labor Standards Act, he cannot work in a hazardous occupation. Had he been sixteen, he could not work during school hours and had he been younger than sixteen, he would need to obtain a permit to work. The Fair Labor Standards Act is a federal statute.
6 0
3 years ago
Other questions:
  • What is the main difference between federal and confederal systems of government?
    13·2 answers
  • Which level of government creates bills for the government to sign or veto?
    12·1 answer
  • Licensee Judy takes a weekly ad out in the South Side Journal. Judy does not place ads in any of the other neighborhood newspape
    6·1 answer
  • Political challenges in Cambodia's past
    12·1 answer
  • Dr. Rose, a clinical psychologist, is administering a battery of psychological tests to a client to gain insight into the client
    15·1 answer
  • What map would show the Earth's physical feautures?
    12·1 answer
  • Sikhs follow the teachings of what prophet?
    12·1 answer
  • What are the cons of a mixed market economy for most citizens? CHECK ALL THAT APPLY.
    12·2 answers
  • A shy person is more likely than a gregarious individual to be neglected by peers. This best describes of the effect of what on
    7·1 answer
  • the general adaptation syndrome suggests that our bodies go through three stages in responding to stress. those stages are
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!