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
Romashka-Z-Leto [24]
3 years ago
6

Complete the sentence with the correct response. In a two-way selection, if the initial statement is evaluated as , the code ski

ps to the ELSE command.
Computers and Technology
1 answer:
mestny [16]3 years ago
8 0

Answer:

True.

The code skips the else command

Explanation:

I will answer this question with the following code segment

<em>n = 1</em>

<em>If n > 0:</em>

<em>   Print("greater than 0")</em>

<em>else:</em>

<em>   Print("not greater than 0")</em>

<em />

From the code segment above

<em>Print("greater than 0")</em> will be executed because the condition <em>If n > 0 </em>is true

Since the if condition is true, the else condition will not be executed

You might be interested in
When users create, alter, or drop tables or create or drop indexes, the dbms updates the system catalog automatically.​?
faust18 [17]
<span>True.  When users make changes to the database, such as creating, altering, or dropping tables or creating or dropping indexes, the DBMS updates the system catalog automatically.</span>
3 0
3 years ago
PLEASE ANSWER ASAP! THANKSSSSS
tankabanditka [31]
That is hard .....……
5 0
2 years ago
It is best to say that electric motors require _______ to work.
Mila [183]
Electricity (energy, current, power, voltage ... depending on the context)
4 0
3 years ago
python Statistics are often calculated with varying amounts of input data. Write a program that takes any number of integers as
Veronika [31]

Answer:

The following are the program in the Python Programming Language.

#get input from the user

val = input("Enter the value: ")

#split the input values

x=val.split()

#declare and initialize two variables to 0

total, l = 0,0

#set for loop

for n in x:

 #coverting into string

 n = int(n)

 #perform addition

 total= total + n

 #check that is l is none or n is greater than l

 if(l is None or n > l):

   #initialize the value of n in l

   l = n

#print the following output

print("Average and maximum value are:", total // len(x), l)

<u>Output</u>:

Enter the value: 10 20 0 5

Average and maximum value are: 8 20

Explanation:

<u>Following are the description of the program</u>.

  • Firstly, declare a variable 'val' in which we get string type input from the user.
  • Again declare two variables and assigned them to 0.
  • Then set the for loop statement, in which we convert the string variable into the integer and perform addition with those converted values. Set the if conditional statement to check that if the variable 'l' is none or 'n' is greater than 'l ' then, assigned the value of the variable 'n' in the variable 'l'.
  • Finally, print the following result with message.
8 0
3 years ago
How can i add a lifeline on my scratch game
frutty [35]

Answer: Click lifeline

Explanation: All you have to do when you get on the game is just click that button on the top right.

7 0
3 years ago
Read 2 more answers
Other questions:
  • Which game would be classified as an educational game
    14·1 answer
  • What are the main types of computer software?
    5·2 answers
  • Which zone of the ocean is deepest ?
    7·2 answers
  • You cannot change data directly in the PivotTable. Instead, you must edit the Excel table, and then ____, or update, the PivotTa
    9·2 answers
  • What is the safest way to shut down a desktop or laptop computer?
    8·1 answer
  • Select the correct answer.
    14·2 answers
  • The _____ of a local variable is the function in which the variable is created.
    6·1 answer
  • How are web design &amp; web development different from each other?
    9·1 answer
  • WILL GIVE BRAINLIEST!! 20 PNTS!!
    7·2 answers
  • Keegan has a hard drive that he wants to connect externally to his laptop. Which two ports can he connect the external hard driv
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!