Write the code for an if statement that adds 5 to the variable num1 if the value stored in the variable testA equals 25. Otherwise subtract 5 from num1.

Answers

Answer 1

In python

if testA == 25:

    num1 += 5

else:

    num1 -= 5

I hope this helps!


Related Questions

(HELP!!!) Which of the following is true about a low-level language?

Select two answers:

Difficult for machines and humans to parse

Relatively easy for humans to write

Less readable by humans than other languages

Guaranteed to be unambiguous

Answers

Answer:

d and b i think

Explanation:

sorry if im wrong :l

Answer:

A and B

Explanation: It's on google if you do your research.

what aspect should you consider before adding pictures to documents

Answers

Answer:

make sure you have the correct picture

Explanation:

it might vary to what document your working on

Question #1 Math Formula The code below is repetitious. What is the output of this program? num = = 3 num = num + 1 num = num + 1 num = num + 1 print(num) Output:​

Answers

Answer:

6.0

Explanation:

3.4 Code Practice: Question 2

Answers

Answer:

n = float(input("Enter the Numerator: "))

d = float (input("Enter the Denominator: "))

if (d != 0):

  print ("Decimal: " + str(n/d))

else:

  print("Error - cannot divide by zero.")

URGENT PLEASE HELP!!!!!
Which rule of composition gives an illusion of movement or context?
A. the rule of odds
B. the rule of three
C. the rule of space
D. simplification

Answers

Answer:

The answer is NOT D. simplification. I took the test and got this wrong, my next guess of what it could be would be C. the rule of space. I hope that this was helpful to you! :)

Create a summary of no less than 125 words of a show that would NOT go over well with television producers because it is targeted to people in the least desirable groups. Include the title of the show, the main characters, and a description of the show's premise. Explain why this show would NOT go over well with television producers.

Answers

Answer:

Follows are the solution to this question:

Explanation:

Its Mid is also an American drama about a Kentucky-based middle-class family who've been struggling to live in an impoverished house, home and earn children on even a daily basis. Mike and Frankie, both live in Orson, Indiana, were mid-aging adults. Users got three kids named Axl, Sue, and Brick. Michael was its owner of a local quarry as well as Frankie, the seller of a motorcycle. It was great for Scriptwriters since it is related to America's many households, a middle and upper-class family. Despicable is an American dramedy about an impoverished and unstable Chicago family.

It among participants is Frank, Gallagher's dad, but Fiona, their household's oldest son, as she actual mom Monica goes up and down as she likes. The other five children of Gallagher are Lips, Yan, Debbie, Lori, and Liam.

Frank is an alcoholic, but Fiona works very hard and provides for her sisters and brothers. It is not used for scriptwriters, because it is related to the poor and victims of abuse of drugs, which aren't considered "wanted." Since that concerns an "unwanted" listeners, its show was indeed a success.

Which of these functions may be used with positional arguments? Select four options
•AVERAGE
•COUNTIF
•COUNT
•SUM
•MAX​

Answers

Answer:

its A

    C

    D

    E  

Explanation:

Answer:

Average

Count

Sum

Max

on edg 2021

Explanation:

I WILL GIVE BRAINLIEST TO WHO ANSWERS FIRST AND CORRECTLY.
Use this option to view your presentation as your audience will see it.

File menu
Play button
Slide Show button
Tools menu

Answers

You would need to use the slide show button.

Answer:

It's either slide show button or the play button

Explanation:

Sending or receiving information between two
more person
.technical term​

Answers

Two-Way Communication

What is the purpose of a computer toolbar?

A. To alphabetize programs
B. To hold frequently used icons
C. To organize files
D. To view all files in the computer

Answers

Answer:

B

Explanation:

In computer interface design, a toolbar (originally known as ribbon) is a graphical control element on which on-screen buttons, icons, menus, or other input or output elements are placed. Toolbars are seen in many types of software such as office suites, graphics editors and web browsers.

The purpose of a computer toolbar is to hold frequently used icons. The correct option is B.

What is toolbar?

A Toolbar is a group of buttons or icons which are the integral part of the window or any software program's interface. Toolbar of the software program's interface has all commands under the menu bar.

In the computer interface, a toolbar has on-screen buttons, icons, menus. Toolbars are available in office suites, graphics editors and web browsers.

Thus, the purpose of a computer toolbar is to hold frequently used icons. The correct option is B.

Learn more about toolbar.

https://brainly.com/question/11496721

#SPJ2

A publication created by a business or individual that is distributed on a regular basis - Weekly, monthly, or quarterly. Used to
provide informational updates to a specific club, group, organization, agency, or business

Answers

Newsletter

Hope this helps!

Which of the following are safety rules when using household chemicals?
A. Never mix household products together B. Keep chemicals in their original bottles C. Turn on a fan or open windows when using household chemicals. D. All of the above

Answers

Answer:

D. All of the above.

Explanation:

Answer:

all of the above

Explanation:

js took the test

Tim is trying to explain to his aunt how her computer works, but she does not understand what a CPU does. Which description will most likely help Tim’s aunt understand the CPU’s role?

Answers

Answer:

CPU is considered as the brain of the computer. CPU performs all types of data processing operations. It stores data, intermediate results, and instructions (program). It controls the operation of all parts of the computer.

Explanation:

Answer:

The CPU processes commands from software.

Explanation:

Learned on edge

What is the definition of a noob? Please help. Define it in your own words but in an appropriate way, thank you very much!

Answers

Answer:

A person that is different from others by the way they look, act, ect.

Write a program to find the total ASCII value of vowels in a given string (one word / a phrase / a sentence). The ASCII value of vowels in the given string is calculated by adding the ASCII value of all the vowels in the string. Also, display the individual count of each vowel( number of times each and every vowel appears in the string.

Answers

In python 3:

def vowelAscii(txt):

   vowels = "aeiouAEIOU"

   total = 0

   lst = ([])

   for i in txt:

       if i in vowels:

           total += ord(i)

           if i not in lst:

               lst.append(i)

               print(f"{i} appears {txt.count(i)} time(s) in the string with an individual ASCII value of {ord(i)}")

   return f"The total ASCII value of the vowels in {txt} is {total}."

print(vowelAscii("hello, I'm learning python"))

This is what I managed to come up with. The last line is testing the function. If you need anymore help, just ask. Best of luck.

WILL MARK FIRST ANSWER BRAINLIEST!!
Manny has drafted an email message and configured a delivery option "Do not deliver before: 5:00 P.M. and today's date." He shuts down his computer and leaves for the day at 4:30 p.m. What will happen at 5 p.m.?

The message will be delivered from the server.
The message will be delivered from Manny’s computer.
The message will remain in Manny’s outbox until the computer is started and the Outlook program is started the next day.
The message will remain in Manny’s outbox until the computer is started, and he will be prompted to send.

Answers

Answer:

The message will remain in Manny's outbox until the computer is started and the Outlook program is started the next day.

Explanation:

Answer:

it is c

Explanation:

4.5 Code Practice


Write a loop that inputs words until the user enters STOP. After each input, the program should number each entry and print in this format:

#1: You entered _____
When STOP is entered, the total number of words entered should be printed in this format:

All done. __ words entered.

Sample Run
Please enter the next word: cat
#1: You entered cat
Please enter the next word: iguana
#2: You entered iguana
Please enter the next word: zebra
#3: You entered zebra
Please enter the next word: dolphin
#4: You entered dolphin
Please enter the next word: STOP
All done. 4 words entered.

Answers

In python 3:

i = 0

while True:

   word = input("Please enter the next word: ")

   if word == "STOP":

       break

   i += 1

   print("#{}: You entered {}".format(i, word))

print("All done. {} word(s) entered.".format(i))

I hope this helps!

The program is an illustration of loops.

Loops are used to perform repetitive operations.

The program in Python, where comments are used to explain each line is as follows:

#This gets input for the first word

word = input("Please enter the next word: ")

#This initializes count to 0

count = 0

#The following iteration is repeated until the user enters "STOP"

while word != "STOP":

   #This prints the word entered

   print("You entered",word)

   #This increments count by 1

   count += 1

   #This gets input for the next words

   word = input("Please enter the next word: ")

   

   

#This prints the count of all words

print("All",count,"words entered!")

At the end of the program, the number of valid inputs is printed.

Read more about similar programs at:

https://brainly.com/question/18283451

Which devices typically generate computer output? monitor, printer, speaker, projector, keyboard mouse, printer, speaker, projector, Braille embosser monitor, webcam, speaker, projector, 3D printer monitor, printer, speaker, projector, Braille embosser

Answers

The devices are monitor, printer, speaker, projector, Braille embosser. The correct option is 4.

What are output devices?

Any piece of computer hardware that converts information into a human-perceptible form or, historically, into a physical machine-readable form for use with other non-computerized equipment is considered an output device. Text, graphics, tactile, audio, or video can all be used.

A monitor displays visual output, such as text and images, on a screen.A printer creates physical output on paper or other media, such as text and images.Music, sound effects, and spoken words are all produced by a speaker.A projector projects visual information onto a screen or other flat surface.A Braille embosser generates output in Braille format, which people who are blind or visually impaired can read.

Thus, the correct option is 4.

For more details regarding output devices, visit:

https://brainly.com/question/13014449

#SPJ1

Your question seems incomplete, the probable complete question is:

Which devices typically generate computer output?

monitor, printer, speaker, projector, keyboard mouse, printer, speaker, projector, Braille embosser monitor, speaker, projector, 3D printer monitor, printer, speaker, projector, Braille embosser

Microsoft ____ is the new web browser.
plz answer this question I would mark your answer brainlist!!!!​

Answers

the answer is microsoft edge not word

discuss two basic types of monitors CRT and LCD give me in short ​

Answers

Difference Between CRT Monitor and LCD Monitor is that CRT monitor is a desktop monitor that contains a cathode-ray tube. ... While An LCD monitor is a desktop monitorthat uses a liquid crystal display to produce images. These monitorsproduce sharp, flicker-free images

If you can’t see the Assets panel, which of these three buttons do you press?

A) Plugins
B) Assets
c) Layers

Answers

Answer: B

Explanation:

The answer is B


Explanation

I did it

how many microprocessers will a small computer have

Answers

Answer:

for what i know its one hope that helps

What is the term used to describe the basic unit of data passed from one computer to another?

message

packet

package

transmission

Answers

Answer:

transmission

Explanation:

How do you activate the Slicer Tools contextual tab?
Select a PivotTable and it will appear.
Select a slicer and it will appear.
Click Slicer and then Options.
It is found under the PivotTable commands.

Answers

Answer:

Select a slicer and it will appear.

Explanation:

i did it

You can activate the Slicer Tools contextual tab by selecting a slicer and it will appear. Thus, the correct option for this question is B.

What do you mean by the Slicer tool?

The Slicer tool may be characterized as a type of tool that significantly provides buttons that you can click to filter tables or PivotTables. In addition to quick filtering, slicers also indicate the current filtering state, which makes it easy to understand what exactly is currently displayed.

According to the context of this question, if you want to use the slicer tool in excel, select Insert > Slicer. After selecting a slicer it will automatically appear on the computer screen followed by selecting the fields you'd like to filter.

Therefore, you can activate the Slicer Tools contextual tab by selecting a slicer and it will appear. Thus, the correct option for this question is B.

To learn more about Slicer tools, refer to the link:

https://brainly.com/question/19717692

#SPJ5

The individual pages on a website should maintain a consistent layout and style from one page to the next.
True or False

Answers

Answer:

I think they should.

Explanation:

It would be very confusing for people using the website to go from one page to the next and have the two pages look completely different.

Answer:

True

Explanation:

You are going to send a document to a client, and you want to be absolutely sure that none of the
formatting is lost. Which of these document formats would be best?
DOC
DOCX
HTML
O PDF

Answers

Answer:

PDF

Explanation:

PDFs are not an easily modifiable format unless converted into a different type. It preserves all formatting, and no formatting details are lost depending on what program a user decides to open the file with.

Send the document to the client as a

PDF

format! Not only is it secure, but it also prevents the material from being changed by the receipiants

1What kind of rules protect everyone’s rights when we use each other’s content

2What are two example of intelectual property

Answers

Answer:

1. Copyright.

2. Songs and books.

Explanation:

A copyright law can be defined as a set of formal rules granted by a government to protect an intellectual property by giving the owner an exclusive right to use while preventing any unauthorized access, use or duplication by others.

For example, when an individual downloads a song owned by any record company without paying a purchase fee, it is a violation of copyright law.

A copyright can be defined as an exclusive legal right granted to the owner of a creative work (intellectual property) to perform, print, record, and publish his or her work. Also, the owner is granted the sole right to authorize any other person to use the creative work.

Hence, copyright is a kind of rules that protect everyone’s rights when we use each other’s content.

An intellectual property can be defined as an intangible creation of the human mind, ideas, thoughts or intelligence. Some examples of an intellectual property are songs, books, poems, technology, design etc.

What does Joann need to change in her outline?
Check all that apply.
O She needs to remove Step 1.
O She needs to add "Highlight the content" as Step 2.
O She needs to change the name of the icon in Step
3.
O She needs to revise Step 4.

Answers

where’s the outline?

Answer:

its D

Explanation:

4.9 question 2 edhesive
Anyone know how to do this???

Answers

I've included my code in a picture. I hope this helps!

Answer:

sum = 0

for x in range (20, 91, 10):

   sum= sum + x

   print(sum)

 

Explanation:

URGENT PLEASE HELP!!!!!
Which rule of composition gives an illusion of movement or context?
A. the rule of odds
B. the rule of three
C. the rule of space
D. simplification

Answers

Answer:

Answer:

C. the rule of space

Answer:

The answer is NOT D. simplification. I took the test and got this wrong, my next guess of what it could be would be C. the rule of space.

I hope that this was helpful to you! :)

Other Questions
The 1st Amendment contains the "Basic Freedoms" of an individual what is all the basic freedoms in there? R. J. Graziano Wholesale Corp. uses the LIFO method of inventory costing. In the current year, profit at R. J. Graziano is running unusually high. The corporate tax rate is also high this year, but it is scheduled to decline significantly next year. In an effort to lower the current year's net income and to take advantage of the changing income tax rate, the president of R. J. Graziano Wholesale instructs the plant accountant to recommend to the purchasing department a large purchase of inventory for delivery 3 days before the end of the year. The price of the inventory to be purchased has doubled during the year, and the purchase will represent a major portion of the ending inventory value.Required:a. What is the effect of this transaction on this year's and next year's income statement and income tax expense? Why?b. If R. J. Graziano Wholesale had been using the FIFO method of inventory costing, would the president give the same directive? c. Should the plant accountant order the inventory purchase to lower income? What are the ethical implications of this order? find the distance between points P ( 7,8 ) and Q ( 6,2 ) Question 10Which of these is the most common form of individual involvement with a political party?Aall of theseBattending a party rally or meetingregistering to vote as a member of the partyworking on the campaign of a party candidateEmaking a financial contribution to the party What is the equation in slope-intercept form of the line that passes through the points (12, 4) and (4, 8)?A. y = 43 20A. , y = 43 20B. y = 43 12B. , y = 43 12C. y = 0.75 13C. , y = 0.75 13D. y = 0.75x +5D. , y = 0.75x +5 HELP ME PLS one bottle of shampoo costs 6 dollars for 8 Oz a second bottle costs 4 dollars for 5oz of shampoo wich has a lower unit rate and how much lower hii guys , I need you help A short note on how are we spending this corona time ... who gives me the best answer I will mark him /her as a brainlist .... Which sentence is punctuated correctly?A) Marianne ended up revising her report three times she looked first at thecontent, then she considered her thesis, and finally she consideredquestions of style.B) Marianne ended up revising her report three times she looked first at thecontent: then she considered her thesis, and finally she consideredquestions of style.C) Marianne ended up revising her report three times she looked first at thecontent, then she considered her thesis: and finally she consideredquestions of style.D) Marianne ended up revising her report three times: she looked first at thecontent, then she considered her thesis, and finally she consideredquestions of style. Question 1 (2 points)According to Dane (2011), mindfulness means The Dean of Admissions at Pace University is considering a survey of high school seniors in order to design better promotional materials for Pace. Discuss the issues to be considered, the different methods of conducting this survey, and the advantages and disadvantages of each. Why are proteins considered organic molecules?a. They are very large moleculesb. They are macromoleculesc. They are made from many carbon atomsd. They contain many oxygen atoms Calculate the total area of the figure below. Pls help I need it ASAP!!! Indentured servants would work 4-7 years for colonists in America in exchange for (EC): 7. Nous avons tlphone ___ enfants. Ils vont bien.8. Il a ecrit un letter___ troupe de theatre. help awnser attach the awnser using image how to solve this it says solve 6! if you place a 37 foot ladder against the top of a 12 foot building, how many felt will the bottom of the ladder be from the bottom of the building 3.4 Code Practice: Question 2 Which of the following made some people from eastern cities want to movewest after the Civil War?A. Too many people in eastern citiesB. Expensive land in the westC. Lots of opportunites to trade with American Indian tribes.D. Big cities with lots of job oppotunities