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
Spirituals are complex, yet straightforward, with no repetition.<br> a. True<br> b. False
sdas [7]
False, often they have to repeat things in spirituals.
3 0
3 years ago
Read 2 more answers
What 3 things were john locke known for​
8090 [49]

John Locke is known for being a English philosopher, a physician, and is widely known as most influential of Enlightenment thinkers and commonly known as the "Father of Liberalism.

6 0
3 years ago
What was their position?
Ad libitum [116K]
Need more info to answer this question
8 0
3 years ago
Christians and Muslims wanted to control the Holy Land because (2 points)
Vanyuwa [196]
They believed it was a sacred place of course.
6 0
3 years ago
Which of the following is an interconnection of food chains in an ecological community?
Volgvan

Answer:

i believe the answer is food web.

3 0
2 years ago
Other questions:
  • Comic who was the 2012 presidential nominee of the peace and freedom party
    6·1 answer
  • A man who smokes, drinks, and talks a lot may be fixated at the _____ stage of psychosexual development.
    14·1 answer
  • Roosevelt helped negotiate peace between Russia and ________
    15·2 answers
  • Critics of kohlberg's theory of moral development have suggested that postconventional morality is more characteristic of ______
    9·1 answer
  • Tyrone has enrolled at the local university and he wants to study mathematics; however, he feels this may not be the appropriate
    6·1 answer
  • I really need help with this question please
    5·1 answer
  • What was the conflict of the Treaty of Paris and why was that conflict
    9·1 answer
  • Name the river flow through shara desert​
    10·2 answers
  • An environmental change drastically reduced the population of milkweed plants in an area. The milkweed plants provided the only
    13·1 answer
  • __________ have the greatest scope and include vulnerability testing
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!