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

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

What piece of equipment changes the signal from the television camera into an electronic signal?
receiver
transducer
transponder

Answers

Answer:

Transponder

Explanation:

Transponder - a device for receiving a radio signal and automatically transmitting a different signal.

Answer:

transponder isnt correct i took the quiz its one of the other 2

Explanation:

the correct answer is transducer

HELP ASAP!!!
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.

Sample Run
What grade are you in?: (I graduated) 1st
1st is a fun grade.
What grade are you in?: (I graduated) 3rd
3rd is a fun grade.
What grade are you in?: (I graduated) 12th
12th is a fun grade.
What grade are you in?: (I graduated) I graduated

It's in python

Answers

def func():

   while True:

       grade = input("What grade are you in?: (I graduated) ")

       if grade == "I graduated":

           return

       print("{} is a fun grade".format(grade))

func()

I hope this helps!

Please Help!

Choose all items that are characteristics of placing nested elements on a new line, using indentation.


A) makes HTML errors difficult to find

B) not required by a web browser

C) can cause web page display errors

D) makes HTML analysis and repair easier

E) done automatically by HTML authoring software

Answers

Answer:

Its B,D,E

Explanation:

Got it right on e2020

Answer:

B). not required by a web browser

D). makes HTML analysis and repair easier

E). done automatically by HTML authoring software

Btw cause this class can be a pain here are the answers to the rest of the assignment.

Slide 7/12:

The missing element is

C). <p></p>

Slide 9/12:

The missing tag is:

B). an end (closing) a tag

Slide 12/12:

The missing character is

D). an angle bracket

Explanation:

I just did the Part 3 on EDGE2022 and it's 200% correct!

Also, heart and rate if you found this answer helpful!! :) (P.S It makes me feel good to know I helped someone today!!)

Python Variables Worksheet
Print | Save
Output: Your Goal
You will write a program to store a message in two variables, then print that message.

Part 1: Plan and Write the Pseudocode
Write an algorithm using pseudocode that someone else can follow. Choose one of the following options:
Decide on the message you would like to display to the screen. Some ideas include:
Your favorite book title or TV show and why you like it
A few sentences sharing information about you
Your favorite sport and team or athlete
Use two variables to store your message.
Insert your pseudocode here:






Part 2: Code the Program
Use the following guidelines to code your program.
Use the Python IDLE to write your program.
Using comments, type a heading that includes your name, today’s date, and a short description.
Set up your def main(): statement. (Don’t forget the parentheses and colon.)
Use at least two variables and two print statements to display your message to the screen.
Conclude the program with the main() statement.
Follow the Python style conventions regarding indentation in your program.
Run your program to ensure it is working properly. Fix any errors you may observe.
Example of expected output: The output below is an example of a “Favorite TV Show” message. Your specific results will vary depending on the choices you make about your message.
Output
My favorite TV show is MythBusters.
I like it because I learn a lot and they do crazy experiments.

When you've completed writing your program code, save your work by selecting 'Save' in the Python IDLE. When you submit your assignment, you will attach this Python file separately.

Part 3: Post Mortem Review (PMR)
Write two to three sentence responses to all the questions in the PMR chart.
Review Question
Response
What was the purpose of your program?

How could your program be useful in the real world?

What is a problem you ran into, and how did you fix it?

Describe one thing you would do differently the next time you write a program.



Part 4: Save Your Work
Don't forget to save this worksheet. You will submit it for your assessment.
Print | Save

Answers

Answer:

Pseudocode:

define func main

accept two parameters

create two variables from those parameters

v1 = title

v2=message

print v1, v2

returns None

call the func including the two arguments

Code:

def main(p1, p2):

""" this is a docstring, the function accepts two parameters p1 and p2 and prints them out"""

____title = p1

____message = p2

____print(title)

____print(message)

main()

Reminder

this didnot include the comment you are to add about your name, date and details

-- comments are placed after a pound sign (#)

also "____" the dashes behind the variables are not indentation just empasising them, as they are done with either by

Tab Button - pressed onceSpace Bar - pressed four times

NEVER MIX THEM CHOOSE AN INDENTATION STYLE AND STICK TO IT

Finally the call function doesn't have a colon called as a nomal object, just as the print funtion also you may include the dicstring if neccessary.

DONT FORGET THE REVIEW QUESTIONS

What is the difference between soft copy output devices and hard copy output devices​

Answers

the output printed on the paper is called hardcopy output. some examples are printer and plotter.

the output produced on display screen and audio sound is called soft copy output. some examples are moniter and speaker.

What are possible challenges of cyberbullying

Answers

Answer:

so,e challenges of cyber bullying is that,it could be a random person bullying u and u won't know who it is,another challenge of cyber bullying is that they can blackmail u or pretend to be u or threaten u

Answer:

Possible challenges of cyberbullying have to do with nonbelievers, or people who do not think cyberbullying is a real problem. Technology makes it hard to stop bullies, and some people do not want to take responsibility.

____ a British mathematician devolved the concept of a programmable digital computer and worked with Ada Lovelace to design the first mechanical computer the Analytical Engine

A William Shockley

B Grace Hopper

C Charles Babbage

D Bill Gates

someone pls answer asap ​

Answers

Answer:

C: Charles Babbage

Explanation:

Charles Babbage

Charles Babbage (1791-1871), computer pioneer, designed two classes of engine, Difference Engines, and Analytical Engines.

The analytical engine is a comprehensive robotic computer system that's been fully programmed as well as automatically controlled, and the further discussion can be defined as follows:

The computer pioneer Charles Babbage (1791-1871), designed two engine classes, different engines as well as analytical engines.He was indeed the brain behind ideas and therefore is considered one of the best on two different computers.A British mathematician Charles Babbage has invented the notion of the digital programmable computer and has been working with Ada Lovelace to design an analysis engine's first machine.

Therefore, the final answer is "Option C".

Learn more:

brainly.com/question/23422991

How can I get coding with no experience?

Answers

With "no" experience? With help, yes! Although with nothing, it would be almost impossible.

Part B
How would you classify a network formed by connecting two MANs together?
В І у хх Font Sizes А • А

Answers

Computer programming 2254518752669

Which statement is true? Select 3 options.

A function must have a return value.
A function can use variables as parameters.
The definition of a function must come before where the function is used.
A function can have more than one parameter.
The definition of a function can come before or after it is used.

Answers

Answer:

A,C, AND E

Explanation:

i got it wrong for the anwser

The statements that are true are as follows:

A function must have a return value.The definition of a function must come before where the function is used.The definition of a function can come before or after it is used.

Thus, the correct options for this question are A, C, and E.

What is Function?

A Function may be defined as a kind of expression, rule, or law that significantly determines a relationship between one variable which is known independent variable and another variable which is known as the dependent variable.

Each and every function must possess a return value. Apart from variables, there are several other parameters on which functions have to be worked on. So, the definition of a function must exist prior to its utilization. However, the actual definition of function may also exist after its utilization as well.

Therefore, the correct options for this question are A, C, and E.

To learn more about Functions, refer to the link:

https://brainly.com/question/22340031

#SPJ2

What can you do to prevent damage to a computer? Check all of the boxes that apply.

Keep your computer in a temperature- controlled room.

Tie cords in knots so they are shorter.

Dust your computer only when you see a buildup of dust.

Use surge protectors when you are away from home or school.​

Answers

Answer:

temperature-controlled room and surge protectors

Explanation:

Answer:

Keep your computer in a temperature- controlled room

Dust your computer only when you see a buildup of dust

Use surge protectors when you are away from home or school

Explanation:

just good

Why can the internet keep growing as more devices are added without decrease in performance?

Answers

Answer:

Explanation:

There may be many reasons why your internet speed is slow. Internet use requires a reliable connection between your device and the destination, which may be a server that is physically located on the other side of the world.Your connection to that server could pass through hundreds of devices on its journey. Each one of these is a potential failure, or weak point. If one point along this path isn’t functioning optimally, this can significantly affect your internet experience.

There are many reasons your Internet connection might appear slow. It could be a problem with your modem or router, Wi-Fi signal, signal strength on your cable line, devices on your network saturating your bandwidth, or even a slow DNS server. These troubleshooting steps will help you pin down the cause.

The way a student prepares for a test or reviews academic material is referred to as

a study environment.
study habits.
study hall.
a study schedule.The way a student prepares for a test or reviews academic material is referred to as

Answers

Answer:

study habits

Explanation:

Answer:

The Answer is Study Habits

Explanation:

Just got it right on edge

Which of these is a rule for creating variable names?

Must start with a capital letter

Must start with a lowercase letter

Cannot include numbers

Cannot use an underscore to separate words

Answers

Answer:

Must start with a lower case letters

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

What are the steps to open the Custom AutoFilter dialog box?

Answers

Answer:

data, sort and filter, text filters

Explanation:

ed 2020

Answer:

data, sort and filter, text filters

Explanation:

any song recommendations, pls dont say 6ix9ine or lil pump

Answers

I actually do have one tho. Try Megan Tha Stallion.

Answer:

smash mouth "all star" is my fave or Imagine Dragons "Whatever it Takes"

Explanation:

The background color indicates the background image of the web page.

True or false?

Answers

This is false. The background color refers to a solid color while the background image just an image.

The background color indicates the background image of the web page is false.

What is distinction among history and history photo?

In a history asset, you could upload history-color, repeat , no-repeat and different photo attributes, however withinside the history-photo assets you're most effectively allowed to feature photos. Show hobby in this post. By the usage of history, you want to specify a different arguments to set the history of the page.

The Background Color facts is saved for photo and image documents that have a color distinctive to the photo history. The history colour is, in maximum cases, displayed withinside the shape of an RGB triplet or a hexadecimal code.

Read more about the web page:

https://brainly.com/question/3700565

#SPJ2

not sure what this means.​

Answers

Answer:

should be text effects............

Text effective it’s not hard it’s easy

Hi guys, Im making a game. I want to make a collision event, but what is the code for making the wall and the box collide. I really need a quick and correct response. Pls support.

Answers

Answer:

i think its 3337

Explanation:

Which of the following is NOT a correct variable assignment?
O test = 98
Oname = "Ada"
O x = x + 1
O 5+ y = x

Answers

So the bottom ones such as x = x + 1 and 5 + y = x are incorrect because there not being initialized with any value. You can’t make a variable and say x = x + 1 without defining what x is.

Variables are simply the names given to memory location.

The incorrect variable assignment is (d) 5 + y = x

To assign a value to a variable, we make use of the following syntax:

variable = expression/value

The above syntax means that:

The variable will be on the left-hand side, while the values or the expressions will be on the right-hand side

Using the above highlights as a guide, we can conclude that:

(d) 5 + y = x is not a correct variable assignment

This is so because, it does not conform to the syntax of variable assignment

Read more about variable assignments at:

https://brainly.com/question/18522561

Explain in details how Galen , a physician during the Middle Ages, expanded on Hippocrates' theory of the four humors and explain what he believed each other humor represented ?

Answers

Answer:

Galen expanded on the Hippocrates' theory of humor by assigning personalities, moods, behaviors, and emotions to the four humors. He believed blood stood for sanguine personality, black bile for a melancholic personality, yellow bile for a choleric personality and phlegm for a phlegmatic personality.

Explanation:

Hippocrates put forward the theory of the four humors. According to the theory, the human body is made up of four substances: black bile, yellow bile, blood, and phlegm. A healthy human body is the product of a balance of among the four humors, while diseases results if there is an imbalance among the four humors.

Galen, a keen admirer of Hippocrates' ideas, further elaborated on this theory and believed that they affected personalities, moods, behaviors, and emotions.

The personalities assigned the four humors are as follows:

People with predominantly black bile are Melancholic (corresponding to the season of autumn dry and cold): They are very sensitive, and enjoy artistic pursuits.

People with predominantly yellow bile are Choleric (corresponding to the season of summer, dry and hot): They possess a passionate temperament, They have a lot of ambition, energy, drive, enormous vitality but are domineering and get angry quickly.

People with predominantly blood are Sanguine (corresponding to the season of spring, wet and hot): These people are confident, joyful, optimistic, expressive, confident, rational and sociable.

People with predominantly phlegm are Phlegmatic (corresponding to the season of winter, wet and cold): They are deep thinkers, fair, calm, very consistent, relaxed, and observant, willing to compromise, and hard workers.

how do you give brianliest

Answers

Answer:

When you ask a question in brainly, two helpers will answer it, then on each answerer you'll find "mark as brainliest" button which looks like a crown.

Hope this helps :)

A peripheral can be used to tell a computer to complete a specific task.
A) True
B)False

Answers

Answer:

A. true

Explanation:

because you can complete it without it mistakes if your using an computer but if you use an paper you will make mistakes over and over

Anyone have an answer for 4.9 lesson code practice

Answers

Answer:

loop

Explanation:

Answer:count

Explanation:

Which function will find the difference of 15 and 3 and return 12 when the main part of your program has the following line of code?

answer = subtract(15,3)

def Subtract(numA, numB):
return numA - numB

def Subtract(numA, numB):
return numB - numA

def subtract(numA, numB):
return numA - numB

def subtract(numA, numB):
return numB - numA

Answers

Answer:def subtract(numA, numB):

   return numA - numB

Explanation:

i got the right answer but i was willing to get it wrong for the right anwser for you

The function that will find an accurate difference of 15 and 3 and return 12 when the main part of your program has the following line of code is as follows:

def subtract(numA, numB):

       return numA - numB

Thus, the correct option for this question is C.

What is the significance of the output of the program?

The significance of the output of the program is understood by the fact that it delivers some values or concepts to the user with respect to the instruction he/she is given to the computer for processing. The output of the program is very specific in nature.

According to the question, you have to assume the value of number A as 15 and number B as 3. So, when you find the difference between these numbers, you get an output of 12.

You must follow the process as follows while framing a program:

def subtract(numA, numB):

         return numA - numB

Therefore, the correct option for this question is C.

To learn more about Output of a program, refer to the link:

https://brainly.com/question/18079696

#SPJ2

What action demonstrates unethical behavior?
A.
working overtime
B.
completing your work ahead of time
C.
taking credit for another person’s work
D.
keeping a tab on your organization’s carbon footprint
E.
leaving office on time

Answers

Answer:

taking credit for another person’s work

Any illegal actions, such stealing or physically abusing employees, are unethical at work. Unethical behavior can be observed in a wide range of businesses and environments. Taking credit for another person’s work.

What is Unethical behavior?

When a person, a professional, or an industry acts in a way that is deemed unethical because it goes against social norms, that behavior is referred to as unethical behavior.

Politicians, businesses, professions, and individuals all have the potential to act unethically.

There are other instances of deliberate deception, but they serve as illustrations of how damaging deception can be when it is used to violate someone's rights or security.

Therefore, Any illegal actions, such stealing or physically abusing employees, are unethical at work. Unethical behavior can be observed in a wide range of businesses and environments. Taking credit for another person’s work.

To learn more about Unethical, refer to the link:

https://brainly.com/question/10174825

#SPJ2

Which of the following You tubers uses the word "flip" as a curse word

A. Unspeakable
B.09Sharkboy
C. Moosecraft
D. All of the above

First correct answer get brainiest!

Answers

All of the above cause it’s fliped
Other Questions
which story idea most likely describes an epic poem Please help me with my homework!!!! Which of the following is NOT a characteristic of loose constructionism? A.equal protection for allB.using the literal meaning of the ConstitutionC.a wide, expansive understanding of federal powersD.necessary and proper adjustments to the Constitution someone plz help me please The local newspaper has letters to the editor from 50 people. If this number represents 2% of all of the newspaper's readers, how many readers does the newspaper have? how can you reduce the amount of waste you send to landfills Write the rational number as a decimal -3 4/9 Read the excerpts from Team Moon and the NASA article.And only nowa solid, panic-stricken, gut-wrenching, heart-palpitating ten minutes by clock but feeling like an eternity laterdid it sink in for John Coursen, Tom Kelly, and a lot of the other Grumman folks who had poured years of their lives into building the lunar module: Their baby was on the moon. Let the cheering begin!When the lunar module lands at 4:18 p.m. EDT, only 30 seconds of fuel remain. Armstrong radios "Houston, Tranquility Base here. The Eagle has landed." Mission control erupts in celebration as the tension breaks, and a controller tells the crew "You got a bunch of guys about to turn blue, we're breathing again."How is the information in the excerpts different?A. The first excerpt is less emotional than the second excerpt.B. The first excerpt is less interesting than the second excerpt.C. The first excerpt is more emotional than the second excerpt.D. The first excerpt is more interesting than the second excerpt.Don't answer if you don't know it. My test is due in 47:18. So please help. If you can't don't answer or else I will report you. //////////////////////////// why is my dog's diarrhea red this time?normally it isnt like this whats the LCM of 8 and 12 using a venn diagram What did this Nobel Prize Winner do to fight oppression?she protested in the streetsshe founded two political organizationsshe left her country HELP I NEED THIS RIGHT NOW Anybody Know This. ? A beverage manufacturer wants to increase The solunility of carbon dioxide in its carbonated drinks as beverages produced which action will increase the solubility of CO2 gas the mostA. Decreasing the pressure on itB. Increasing stirring C. Decreasing its temperatureD. Increasing its temperature Which term refers to the ability of a substance to be hammered or rolled into sheets?malleabilitylusterductilityconductivity Which of the following pieces of legislation effectively repealed the Missouri Compromise?O A.the Kansas-Nebraska ActO B.the Wilmot ProvisoO c.the Compromise of 1850ODthe Northwest Ordinance Which statement shows the associative property of addition?HELP3(5x)=(35)x21 + 2y = 2y + 21If m + 3 = 18, then 18 = m + 3.(u + 7) + 13 = u + (7 + 13)thanks :) What is the theme of Process by Teri Ellen Cross Davis What types of organisms have mitochondria