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

Computer hardware is best described as

Answers

Computer hardware is best described as any physical component of a computer system that contains ICs, Circuit boards , or any other type of electronic.

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

Computers that are connected to each other, but not to the internet,
configured according to which network?
plzz this due today

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

Computers that are connected to each other, but not to each other - is an intranet.

Because in intranet computers are connected to each other within an organization and don't connect to the internet. In the intranet, computers don't access globally. For example, in banking, the banking system can be accessed within the organization but not from outside as on the internet.

While it is noted that the Internet is a globally-connected network of computers that enables people to share information and communicate with each other. An intranet, on the other hand, is a local or restricted network that enables people to store, organize, and share information within an organization.

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:

full detail about computer and its history


Answers

Answer:

The computer as we know it today had its beginning with a 19th century English mathematics professor name Charles Babbage. He designed the Analytical Engine and it was this design that the basic framework of the computers of today are based on. ... It was called the Atanasoff-Berry Computer (ABC).

Explanation:

help !!!!!
Aziz is purchasing a new laptop. The salesperson asks him if he requires any software, as he will get a discount if purchased together. What is that “software” the salesperson is referring to?

• a type of insurance that covers light wear and tear to the laptop for a specified number of years

• a type of protective covering to prevent the laptop from damage in case of falls

• a detailed list of all the hardware connected to the laptop as well as hardware on the laptop

• a set of instructions that enables the laptop to perform certain functions or operations

Answers

I believe it’s D because software is the programs and other operations used by a computer

Answer:

its d

Explanation:

i just did it

Which statement best explains the purpose of using online note-taking tools?

Online note-taking tools guarantee better scores on tests.
Online note-taking tools let students take notes quickly and easily.
Online note-taking tools tell students exactly what they need to study.
Online note-taking tools turn disorganized notes into organized notes.

Answers

Answer:

B

i did the instruction

Explanation:

The statement which best explains the purpose of using online note-taking tools is that Online note-taking tools let students take notes quickly and easily. Thus, the correct option for this question is B.

What is an online note-taking tool?

An online note-taking tool may be characterized as a type of software tool that significantly allows users to capture, store, and manage voice and text notes on different devices.

It makes note-taking convenient and accessible and allows you to write and study flexibly. Unlike other note-taking apps, you can view documents and take notes at the same time on one screen.

The primary purpose of note-taking is to encourage active learning and to prepare study materials for exams. Developing note-taking skills should help you organize information into an understandable format that will assist in your studying process.

Therefore, the correct option for this question is B.

To learn more about Note-taking tools, refer to the link:

https://brainly.com/question/18546670

#SPJ2

How is computer programming useful in real life? Help me

Answers

It can help you with technology and can help you become a computer programmer if you like technology hope this works I’m sorry if it doesn’t

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.")

i need help plz it keeps on happening and idk what to do


so right now im on my school computer and everytime i turn it on it shows this blue site and on the site it says something like anti-virus-protection. I dont need virus protection cause im on my school computer, then whenever i turn on chrome it closes the page i was on and then brings it bk on does anyone know what is happening or can help me//

Answers

I would probably try restarting/turning the computer off and on again first. If that doesn't work, you should probably contact a teacher to see if they can help you.

(and if you can't make it work, maybe try to see if you can use another computer)

Hope you can figure it out!

Which of the following is NOT a reason to include comments in programs

Answers

what are the options?
what are our options??????

Nina is trying to learn more about how computers work. She has repeatedly read that the motherboard is the "brain” of the computer.

Nina has learned that the motherboard is considered the brain because it

stores all of the computer’s information.
enables the computer to function.
processes the data on the computer.
guides the computer’s activities.

Answers

[tex]\huge\boxed{Enables\;the\;computer\;to\;function.}[/tex]

The motherboard is the part in the computer that allows the computer to function correctly. Without it, none of the computer pieces could interact.

Nina has learned that the motherboard is considered the brain because it enables the computer to function, hence option B is correct.

What is the function of the motherboard?

The circuit board determines the kinds of storage devices, memory modules, and graphics cards (among other expansion cards) that can connect to your PC. It also distributes electricity from your power supply and links all of your hardware to your processor.

The motherboard of the computer contains the central processing unit (CPU), also known as a processor. It executes commands and is sometimes referred to as the computer's brain. You provide the CPU instructions every time you touch a key, click the mouse, or launch an application.

Therefore, the motherboard is considered the brain of the computer.

Learn more about motherboards, here:

https://brainly.com/question/29834097

#SPJ2

what's my favorite color

black

red

purple

yellow

orange

Answers

Answer:

.

Explanation:

A programmer created a piece of software and wants to publish it using a Creative Commons license. Which of the following is a direct benefit of publishing the software with this type of license?

A

The programmer can ensure that the algorithms used in the software are free from bias.
B

The programmer can ensure that the source code for the software is backed up for archival purposes.

C

The programmer can include code that was written by other people in the software without needing to obtain permission.
D

The programmer can specify the ways that other people are legally allowed to use and distribute the software.

Answers

Answer:

The answer to this question is given below in the explanation section. However,  the correct answer is D.

Explanation:

This question is about publishing software under a creative commons license. The direct benefit of publishing the software under commons creative license is that the programmer can specify the ways that other people are legally allowed to use and distribute the software.

Because under this type of license, the publisher can publish their work under copyright law.  So they can control and specify the ways that how other people can use and distribute it legally.

While other options are not correct, because of its programmer responsibility that source code is free from error and bias, take backup for archival purposes. People can't include anything without obtaining permission etc.

The direct benefit of publishing the software with this type of license is option D.

The following information should be considered:

It is the programmer that represent the ways where the other people are permitted for using and allocating the software. Also under this license, the publisher could publish the work as per the copyright law.The source code should be free from error & bias, backup for archival purpose, without giving the permission represent the responsibility of the programmer.

Therefore we can conclude that the correct option is D.

Learn more: brainly.com/question/22701930

Type the correct answer in the box. Spell all words correctly.

Which artistic technique does an artist use to draw images made up of tiny dots?

Katie is an artist. She uses the..............technique to draw images made up of tiny dots.

Answers

Answer:

Pointillism is the technique you are looking for

In double-entry accounting, where should you record money that is leaving your company to pay bills?
A. In the debits column
B. In the credits column
C. In the asset column
D In the cash flow column
Please select the best answer from the choices provided
A
B
С
D

Answers

Answer

I think the answer is cash flow

Explanation

Okay, so cash flow if my memory serves correctly, cash flow is the money that is coming in or when you go to pay something, cash asset is money that is in your wallet or in your bank account, cash credit is a temporary loan and I dont really kniw what a debita column is.

Answer:

Its actually

In the credits column

-

Or (B) On edg. E2021

Explanation:

<3

Employees at the Red Bluff Golf Club & Pro Shop have the opportunity to become certified trainers if they log enough hours. Aleeta would like to know which of her employees are certified. On the EmployeeAnalysis worksheet, in cell D5, enter a function that will return the text Certified if the number of training hours completed is 50 or more, otherwise return the text Not Certified. AutoFill the function down through cell D9. Club members get a 10% discount off all items in the Pro Shop. Aleeta wants to keep track of these discounts. On the Transactions worksheet, in cell I10, enter a function that will return 0.07 if the customer is a member, otherwise return a blank value (""). Use the fill handle to copy the formula down through cell I30.

Answers

Answer:

Following are the solution to this question:

Explanation:

Some of the data is missing in the question, which is defined in the attached file. Please find it.

Follows are the formula which is used in the question:

EmployeeAnalysis Worksheet IF(C5>49,"Certified","Not Certified") Transactions Worksheet IF(F10="No","",0.07)

In the first condition, it checks "C5" is greater than 49 if the condition is true, it will give "Certified" otherwise, it will give "Not Certified".

In the second condition, it checks "F10" is equal to "No" if the condition is true, it will give a blank or space otherwise, it will give "0.07".

Describe any five modern application areas
of computer​

Answers

Answer:

Some of the application areas of computer are banking, education, industries, entertainments, hospitals, data processing etc. ... and also online education. Different types of entertainment fields such as multimedia, film making with animation, graphics, audio and visual design are done with the help of computer.

I WILL MARK BRAINLIEST!!!!!1

Answers

Answer:

They make the keyboard work properly

Explanation:

A family member who hasnít worked with computers before has decided to change jobs. Youíve been asked to explain some of the basics. You begin by explaining the basic idea of word processing software, spreadsheets, databases, and presentation software. You sense that the following question is coming: ìWhy so many different things? Why canít there just be one software that you could use for everything?î How would you answer?

Answers

There are too many diverse forms of media. For all of them to be suited under one program would make every server monotonous and pretty much the same. With different programs, different forms of diverse media are created.

Why is computer called an information processing machine?

Answers

Answer:

A computer is an information processing machine. Computers process data to produce information. The sets of instructions that humans give computers are called programs or software. Computers never lose or misplace information.

hope this helped youuu:)

what are four basic properties of waves?

Answers

Answer:

Amplitude, Wavelength, Frequency, and Speed.

Explanation:

Amplitude: The maximum displacement of the wave from the centerline (undisturbed position).

Wavelength: The distance from one crest (outer egde of wave) to crest.

Frequency: The number of crests that pass a single point over a unit of time.

Speed: How far the wave travels in a unit of time.

The basic properties of waves are: Amplitude, Wavelength, Frequency

and Speed.

Four basic properties of waves are:

1. Amplitude: The amplitude of a wave is the maximum displacement or distance that a particle in the medium (or the wave itself) moves from its rest position when the wave passes through.

2. Wavelength: The wavelength of a wave is the distance between two consecutive points that are in phase, such as two crests or two troughs. It is measured from one point in the wave to the corresponding point in the next wave.

3. Frequency: The frequency of a wave is the number of wave cycles (complete oscillations) that pass through a specific point in one second. It is measured in Hertz (Hz).

4. Speed: The speed of a wave is the rate at which the wave travels through the medium. It is the distance that a wave travels in a given amount of time.

Learn more about Waves here:

https://brainly.com/question/3381679

#SPJ6

What kind of money is a gold certificate considered to be?

commodity
fiat
representative
currency

Answers

The kind of money a gold certificate is considered to be is: C. representative.

What is a gold certificate?

A gold certificate can be defined as a certificate of ownership that is issued by a public treasury and held by the owner of a gold instead of holding the real gold itself.

In the United States of America, a gold certificate is typically issued exclusively to the Federal Reserve System (Fed) by the US Treasury.

In conclusion, the kind of money that a gold certificate is considered to be is representative.

Read more on money here: https://brainly.com/question/25959268

#SPJ5

The kind of money a gold certificate is considered to be is representative. Thus, option C is correct.

What is a gold certificate?

A gold certificate can be defined as a certificate of ownership that is issued by a public treasury and held by the owner of a gold instead of holding the real gold itself. In the United States of America, a gold certificate is typically issued exclusively to the Federal Reserve System (Fed) by the US Treasury.

Money is a good that is widely recognized as a means of economic exchange. It serves as the means for expressing values and prices. It is the primary indicator of wealth because it moves from person to person and nation to country, facilitating trade.

Therefore, the kind of money that a gold certificate is considered to be is representative.

To learn more on money, click here:

brainly.com/question/28784237

#SPJ5

Part 2: Code the Program Use the following guidelines to code your program. 1. Use the Python IDLE to write your program. 2. Using comments, type a heading that includes your name, today’s date, and a short description. 3. Set up your def main(): statement. (Don’t forget the parentheses and colon.) 4. Use at least two variables and two print statement to display your message to the screen. 5. Conclude the program with the main() statement. 6. Follow the Python style conventions regarding indentation in your program. 7. 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.

Answers

# Replace this with your name, date, and a short description

def main():

   x = "My favorite book is python for dummies."

   y = "I like it because it introduces new python topics."

   print(x)

   print(y)

if __name__ == "__main__":

   main()



6) Sometimes it is difficult to read a piece of code and understand what the code will do. For this reason, you may want to add notes to yourself (or to someone else that may read the code) that show up in the code, but not when you run the program. What are these notes called and what symbol do you use to write them

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The notes that are used in a piece of code to understand the difficulty of coding or for others to read it is called comments.

Comments in code help in understanding the code, they help others to read the code and understand the logic written behind it. Comments also help the programmer to read his code himself for understanding purposes. Comments in coding used for understanding the purpose of code and what the code will do. The comments written in the program cannot execute or shown when you run the program.

Comments in coding/program can be used in two ways in almost all programming languages. You can use comments on a single line and in multiple lines.

To show a comment on a single line, you can use the double backslash "//" .

To make a comment on a single line. for example

//here the calculation start or some other understandable comments.

if the comments are more than one line then you can use "/*    */" symbols to write comments on multiple lines

for example:

/* this is the code

that calculate the sum and average of students grades

it also displays the grade in letter

*/

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.

types of computer that we use in our daily life​

Answers

Answer:

all coumputers

Explanation:

i just like coumputers

The answer would be all computers
Hope this helps :)

Zachary is writing an article that will be included in a Who is most likely Zachary's audience? pamphlet his school is putting together titled "Guide to Your School Library." Zachary's article will explain how to O students about to graduate from the school find information for a science project. O science teachers O parents visiting the school O students who are new to the school​

Answers

Answer:

Students who are new to the school.

Explanation:

right on edg2020

Passage:

Zachary is writing an article that will be included in a pamphlet his school is putting together titled "Guide to Your School Library.” Zachary’s article will explain how to find information for a science project.

Question:

Who is most likely Zachary’s audience?

Options:

students about to graduate from the school science teachers parents visiting the school students who are new to the school

Answer:

D.) students who are new to the school

Explanation:

This option is correct because when I did the assignment on Edge, I got it right!

I WILL GIVE BRAINLIEST TO WHO ANSWERS FIRST AND CORRECTLY.
All slides in a presentation must use the same transition.

True
False

Answers

Answer:

true

Explanation:

The answer is true good luck

I WILL GIVE BRAINLIEST TO WHO ANSWERS FIRST AND CORRECTLY.
select all that apply
What guidelines should you follow when adding graphics to your presentations?

They should be used to make a bad presentation better.
Graphics should appear on each slide.
Graphics should only be used when they improve the communication.
Their size should be appropriate for viewing by your audience.
They should be relevant and appropriate to the content.

Answers

Answer:

the third and the last one

Other Questions
King George III passed the Proclamation of 1763 which set the line of western settlement________________________ .a. along the Mason- Dixon Linec. at the Appalachian Mountainsb. along the Mississippi Riverd .along the Prime Meridian The energy associated with the motion and position of an object is called a.kinetic energy b.potential energy c.gravitational potential energy d.mechanical energy Find the missing terms in the sequence:18, -72, 288, even number less than 12 Julie had $150. She needed to spend $3.00 for lunch every day. How much money will she have left after 20 days? Please help it's hard who was the second man on the moon Jack refuses to hunt because Ralph asks him to.True orFalse Plz help. And plz show work. A state makes license plates with five letters followed by one number with no repetitions of the letters permitted. How many different possibilities are there Which of the following is not a correct safety guideline to follow when exercising?OA.Wear protective gear.Do not eat a large meal immediately before exercising. SinOB.O c.Do not drink water while exercising.OD.Follow traffic rules. Where are you most likely to find ligaments in the body?A joints between long bonesB joints between two or more irregular bonesC joints between a long bone and a short boneD joints between muscles and bones Select the synonym for denotation.A. Dictionary definition B. DictionC. Reference D. Meaning What is is 7(-5v - 8) There were some people on a boat 26 people got off the boat at the first harbor. 22 people got on the boat. Now there are 74 people on the boat. How many people were on the boat to begin with? What led to the demise of the classic Mayans? List the four theories.PLZ HELP A dog kennel charges $20 per night to board your dog. You can also have a dog treat delivered to your dog for $5. The equation 20x+5y=100 models the situation of possible combinations of nights at the kennel (x) and dog treats (y) that you can buy for $100. Describe what the intercepts mean in context of the story. 23. How can the Constitution be amended? (10 points) .Answer in units of N. How was Phoenicians writing different from cuneiform? PLEASE HELP !!!!!!! WILL MARK BRAINLYESTWhat was the objective of the pringle lab study?A) to determine where the different antelope species spent most of their time B) to track the migration routes of the different antelope species C) to determine how so many similar species of large mammals can exist together in the same placeD) to determine what species of animals the lions ate