What will happen when you run this program?
num = - 10
while num > 0
print (num)
This is an infinite loop.
Python will print the integers from 10 to 1.
There will be no output. The loop condition is false.
Python will print 10 ten times

Answers

Answer 1

Answer:

There will be no output. The loop condition is false.

Explanation:

num is not greater than 0, so the while condition is never true.

Also, there is a colon missing in the code and the print statement is lacking proper indentation, so it could not run at all. Assuming you fix that, the print statement would never be reached.

Answer 2

The while condition is never true, since num cannot be greater than 0. The print statement is improperly indented and the code is missing a colon, which prevents it from running at all. Thus, option B is correct.

What is the condition in a loop in which no output?

An expression called a condition is examined each time the loop runs. The loop continues to execute as long as condition is true.

When a loop successfully repeats, an expression called increment determines how the loop control variable is increased. The print statement would never be reached, assuming you solve that.

Since num does not exceed 0, the while condition is never true. Additionally, the code is missing a colon, and the print statement is improperly indented, making it impossible for it to run at all.

Therefore, There will be no output. The loop condition is false.

Learn more about loop here:

https://brainly.com/question/14390367

#SPJ2


Related Questions

A
loop has a built in count variable.
for
while
range
function

Answers

Answer:

For

Explanation:

If what I am thinking is right, it would be for because a for loop counts how many times it needs to be ran

You frequently want to take some sort of action on each value in an array when you have values in an array. To access each element individually while iterating through the entire array, use a for loop. Thus, option C is correct.

What for is included in built in count variable?

A variable is often used in a counting loop to count from an initial value to an end value. The index variable is another name for this variable.

The index variable used in this illustration is i. A counting loop typically consists of the following six parts: Setup clauses.

A counter variable must be given a starting value. Test: It must perform a test on the counter variable by contrasting it with a result.

Therefore, The function accepts an iterable and returns an object with tuples, the first member of which is the item's index.

Learn more about count variable here:

https://brainly.com/question/13218753

#SPJ2

PLS help im in the middle of this test
If someone enjoys the technical aspects of production but does not enjoy working with a large number of people, which career option might be best?


photojournalist
videographer
camera operator
print journalist

Answers

Answer:

Videographer

Explanation:

They work with a small grade while the other have to have good people skills

what is meant by byte in computer terminology​

Answers

Answer:

Byte, the basic unit of information in computer storage and processing. A byte consists of 8 adjacent binary digits (bits), each of which consists of a 0 or 1. The string of bits making up a byte is processed as a unit by a computer; bytes are the smallest operable units of storage in computer technology.

Explanation:

Can I be brainliest? TYSMMMMMM      

A byte is a group of binary digits or bits (usually eight) operated on as a unit. It is considered as a unit of memory size.

To summarize means to
O. Directly quote the main idea
O. Communicate the main idea with supporting details
O. Explain the main idea’s significance
O. Condense the main idea into a few words

Answers

Answer:

To summarize is to explain the main idea in as few words as possible. So the answer is the last statement, to "Condense the main idea into a few words". Hope this helped.

Answer:

Its D

Explanation:

Hope it helped

Before he buys a new smartphone, Tim can best use data to

evaluate which phone he should get.
convince himself he wants a phone.
discredit others’ opinions on his phone choice.
recognize problems that all phones have.

Answers

It’s A or the first one, kinda like process of elimination, the second and third one are obviously eliminated first so then it’s just between a and d. But a makes more sense as to he has to buy one either way

Answer:

A.) Evaluate which phone he should get

Explanation:

Edge2020

BRAINLIEST

When using design templates, these elements will be determined for you.
bullets
background
color scheme
content
title
font

Answers

Answer:

background

color scheme

font

I think thats all

Explanation:

Please give me Brainly

When using design templates, the elements that will be determined for you are color scheme and background. The correct options are b and c.

What is designing a template?

The template is creating a document that has a copy of itself. Design templates are ready-made layouts and written materials that can be altered.  For example, if you have a template of office content, then you can use it for another word document. You don't have to start from scratch.

In order to maintain consistency among users and media, templates are frequently created to adhere to certain rules or specifications. You can make new templates for later use, or utilize pre-designed templates from template libraries and websites.

Therefore, the correct options are b, background, and c, color scheme.

To learn more about template, refer to the link:

https://brainly.com/question/28193778

#SPJ2

Documentary photographers strive to produce what type of image?
А.
Edited
B.
True
C.
Colorful
D.
Blurred

Answers

I’m pretty sure that the answer is B

Answer:

B. :)

Explanation:

Write a program that asks the p34won to enter their grade, and then prints GRADE is a fun grade. Your program should repeat these steps until the user inputs I graduated

Answers

Answer:

Following are the code to this question:

def fun():#defining a method fun

  while True:#defining a while loop  

      g = input("Enter your grade: (I graduated) ")#defining variable g for input value

      if g == "I graduated":#defining if block to check string value

          return 0#return  

      print("{} is a fun grade".format(g))#use print method to print string value  

fun()#calling the method

Output:

Enter your grade: (I graduated) 1st

1st is a fun grade

Enter your grade: (I graduated) 2nd

2nd is a fun grade

Enter your grade: (I graduated) I graduated

Explanation:

In the given python code, a method "fun" is defined, and inside the method, a while loop is defined, which uses a variable "g" for input value from the user-end.

In the next step, if block is defined to check string a value and return a value 0, and use the print method to print the given value, and call the above method fun.  

In game design, what refers to commands that are executed in a certain order?
blueprints
code blocks
instructions
sprites

Answers

Answer:

instructions

Explanation:

It's just called instructions.

instructions is the answer

To find the location’s name of the cell, look to the . To add an action to the cell for that data, add commands in the . To move from one cell to the next, use .

Answers

Answer:

Name Box

Formula Bar

Either Tab or Enter

Explanation:

Answer:

To find the location’s name of the cell, look to the

✔ name box

.

To add an action to the cell for that data, add commands in the

✔ formula bar

.

To move from one cell to the next, use

✔ either tab or enter

.

Explanation:

If the larger gear is the
input driven and the small
gear is the output, you get
_____ multiplier?
a

Answers

Answer: A multiplier that's equal or larger than 1

The fireworks were a lantern in the sky

Answers

Answer:

So your saying thst when a firework blows then it is a big lantern in the sky???

Find and Explain 3 different sources of Kinetic Energy in your house that are utilized on a daily basis?

Answers

1.)When you turn on a light with a traditional incandescent light bulb, it gives off two forms of energy. There is the visible light that you see, as well as the warmth that it generates

2.) When you place a frozen pizza in the oven, you are heating it up and raising its temperature

3.) A light fixture that is plugged into a wall outlet and is turned on is another example of electrical energy

What are the 3 coding languages?

Answers

Answer:

What theres a code

Explanation:

how to determine if the behavior of a person using technology is a ethical or unethical? Give some examples. ​

Answers

Answer:

What is ethical behavior? A person who demonstrates ethical behavior has evidence of a strong moral code and a consistent set of values. Ethics can be rooted in belief or the pursuit of making the world better. Those who exemplify ethical behavior do the right thing regardless of whether they get credit for it.

limit the principles to five so that you can best incorporate them into your daily lives.

Make Things Better. ...

Treat Others Fairly. ...

Consider the Consequences of Your Actions. ...

Respect the Rights of Others. ...

Act with Integrity.

Determining What Is Ethical

Morality is based on duty. When you do the right thing, it is not the outcome of the act that is the measure of its morality, but rather your intent.

An act is moral if it could become a universal rule of society.

On deciding the morality of an act, you must consider the perspective of the doer and the recipient.

Explanation:

Sorry if it's wrong

Source of the information : a book

BUYING A NEW COMPUTER
Scott is getting a new computer. He has three options for secondary storage. He could
choose
a 6TB hard disk drive
a 2TB solid state drive
a hybrid 500GB solid state with a 4TB hard disk
For each option provide some reasons why Scott may choose that option instead of the
alternatives.
IS​

Answers

6 TB- Choose this if you are getting the computer for work use, always pick the highest amount of storage for everyday use.

2TB SSD- This is the worst option because its the least among the others, but if you were just a game this may suit you.

500 GB SSD with 4TB- This would be the best option for someone who games, edits, or does graphics, because you get the storage but you also get 500 GB of SSD to load your software on, which will help it launch faster and run smoother.

What is NOT a built-in function in python?
sqrt()
string()
fabs()
O print()

Answers

Answer:

sqrt()

Explanation:

In python there more there 100s of core built in codes, the only one that isnt one of those is sqrt()

Sqrt
Your welcome xoxo

Focusing on the general characteristics of a problem or object, while ignoring the details, is a technique called
O refinement
O abstraction
O decomposition
O pattern recognition

Answers

Answer:

Abstraction

Explanation:

In computer science, abstraction has a similar definition. It is a simplified version of something technical, such as a function or an object in a program. The goal of "abstracting" data is to reduce complexity by removing unnecessary information. At some level, we all think of computers in abstract terms.

How did New York Governor Hugh Carey handle Sostre’s situation?

Answers

Answer:

The governor found a way to free Sostre without assessing whether or not he was guilty or innocent of drug crime in buffalo.

Explanation:

Answer:

The governor found a way to free Sostre without assessing whether or not he was guilty or innocent of drug crime in buffalo.

Explanation:

correct on e2020 Dawg

Write a function that takes the name of a file with a .csv extension (a comma-separated value file), and writes a new file that is equivalent (same name and same data) but with a .tsv extension (a tab-separated value file: like a CSV but with tabs instead of commas separating the elements of the file). Note: the character used to represent a tab is ‘\t’.

Answers

Answer:

import pandas as pd

def convert_to_tsv( csv_filename ):

   df = pd.read_csv("csv_file")

   df.to_csv("csv_filename.tsv", sep='\t')

Explanation:

The python program uses the pandas' module to read in the csv file in the function "convert_to_tsv". The file is saved as a tsv file with the pandas to_csv method and the " sep= '\t' " attribute.

Challenge #3: Create a network that keeps everyone connected even if one of the lines is cut Insert as many lines as needed

Answers

Answer:

To create a redundant computer network, The star network topology is adopted.

Explanation:

Note that topology is not a type of network but a top view of how the network looks like or is connected.

To make a network redundant, interconnect every computer to one another in the network, so even when a line or an ethernet cable ( the connector) makes, there is no loss of connection.

This form of network is not recommended for large computer networks as it would result in confusion due to excess connection cables running in the network.

Justify the following statement: “Some Americans’ sedentary lifestyles contribute to their poor health.”

Answers

It is essential that people are active in their lives to fulfill that basic biological need. This will allow blood flow to increase, which is beneficial for health. In addition, it can release healthy chemicals into the brain, which is beneficial for mood, energy, and well-being.

Answer:

Since the average American will spend 24 hours watching television per week, it is safe to say that they suffer from a lack of movement and exercise. This, in turn, will lead more Americans to be overweight and more likely to suffer from serious health problems! :)

Explanation:

Elias is writing poems and is formatting several to fit on a page that has been divided into columns. Which column break would allow him to end one poem and start the next poem on the same page?

Question 6 options:
next page
sequential
text wrap
continuous

Answers

Answer:

Explanation:

Column break continous

HELP ME
How does removing the paper backing on photographs allow Michal Macku to create creatively distorted pictures?

Answers

Answer:

Since the end of 1989, Michal Macku has used his own creative technique which ... Created on photographic quality paper, each Gellage is a highly durable print ... Photographic pictures mean specific touch with concrete reality for me, one ... I do what I feel, and only then do I begin to meditate on what the result is.

Explanation:

The inference shows that removing the paper allows the picture to be more flexible so that it can be reformed to something new.

What is an inference?

It should be noted that an inference simply means the conclusion that can be deduced from the information given in a story.

In this case, the inference shows that removing the paper allows the picture to be more flexible so that it can be reformed to something new.

Learn more about inference on:

https://brainly.com/question/1081576

A battery is connected to a light bulb in a circuit. There is a current of 2 A in the light bulb. The voltage of the battery is 1.5 V. What is the resistance of the light bulb?

Answers

Answer:

The current in a circuit is directly proportional to the electric potential difference impressed across its ends and inversely proportional to the total resistance offered by the external circuit. The greater the battery voltage, the greater the current.

Explanation:

Software licensed as proprietary

is usually free of cost often has lower quality than other types.

does not permit source code changes.

is rare in today's marketplace.

can be redistributed by the user at will.​

Answers

Answer:

Does not permit source code changes.

Explanation:

Answer:

does not permit source code changes.

Explanation:

Imagine yourself writing computer programs in the future. Which do you think would be generally more important to your programming goals: ease of programming or speed of computation? Why do you think this would be more important? Describe a situation for which the other goal would be more important.

Answers

Answer:

to make sure ur comsters are satified

Explanation:

you are working on creating a business document with two other co-workers. Based on just information, which of the following pre-writing strategies would be the best for you?(A.P.E.X.)

Answers

Brainstorming, Rationalizing, and Rough Drafts.

What can you do if brainstorming only gives you a small or incomplete idea?
A. Brainstorm again
B. Develop the idea through research
C. Develop the idea through a close reading of a literary text
O
D. All of the above

Answers

Answer:

D. All of the above

Explanation:

Tony, the team photographer, will be accompanying his college football team to their next away game. He will be shooting photos of his team in action on the field. Which equipment would be ideal for Tony to use for his work? A. suction mount B. shoulder mount C. pistol grip D. mini tripod E. crane

Answers

Answer:

I think shoulder mount

Explanation: because you’ll generally use a shoulder mount for video shooting or when you use heavy telephoto lenses.

Other Questions
The Democratic Party consisted of _________ individuals There are 24 students in the class. They had the choice to buy supplies from two different stores, Store A and B. Each of them bought 2 binders and 5 notebooks. The students have a total of $420 to spend. 2/5 times 2/3 (28 points) Select the correct answer. What is reciprocity? . It is the process by which architects apply for licensure to work in another state. . It is the process by which architects earn a license in their home state. OC. It is the process by which architects take the ARE. OD. It is the process by which architects apply to become an urban designer. Why did farmers and laborers have different opinions on child labor?I. Farmers required children as a source of labor.II. Laborers believed that their wages suffered due to cheap child labor.III. Both needed the tax break that was given for child employees.A.I onlyB.II onlyC.I and II onlyD.I, II, and III After Parliament repeals the Stamp Act, they come back andsay that Parliament DOES have the right to tax colonists withwhich Act? Which sentence uses a pronoun in the possessive case?It is a great night for a campfire.Be careful or your marshmallow might burn.I love singing silly songs under the stars.Is she telling a spooky story? Sus? Nah then lets play among us okie..... True/False: The 3/5ths Compromise was to determine if slaves should be free. after the basketball game the students had a adance at the school. how should the sentence be correctly punctuated? Need help with this. Please confusin help pls ?????????? i neeeeddddd one moreeeee Write the ratio as a fraction in simplest form. 5 meters : 20 meters Brendan just became a personal trainer and is finalizing his pricing plans. One plan is to charge $50 for the initial consultation and then $60 per session. Another plan is to charge $100 for the consultation and $50 per session. Brendan realizes that the two plans have the same cost for a certain number of sessions. After how many sessions will the pricing be the same? PLEASE HELP ME WITH THIS!!!!!! They sold two ice cream bars to my mother and I.Which revision could best be made to the object pronoun?O They should be changed to we.o I should be changed to me.o I should be changed to she.They should be changed to them. Help pleaseeeee ! for a friend Where does the bear creek watershed start and end? Which one of these relationships is different than the other three? Explain how you know.