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

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 is a technology that exists inside another device called

Answers

Answer: embedded technology

Explanation: just took the test

Answer:

A

Explanation:

Embedded technology

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

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.

Which characters in the function shown represent the arguments?
=MAX(B2:B6,C4,100)

A) =
B) MAX
C) (B2:B6,C4,100)
D) ( ,

Answers

Answer:

c

Explanation:

Answer:

C

Explanation:

What is the value of numC when this program is executed?
numA = 4
numB = 10
if numA == 2:
numC = 10
elif numA > numB:
numC = 20
else:
numC = 30

Answers

numA = 4 and numB = 10

for the if statement to run, numA has to equal 2, which it doesn't.

for the elif statement to run, numA has to be greater than numB, which it isn't.

That leaves the else statement, therefore, numC = 30

Answer:

30

Explanation:



Access from and output to the register is slow true false​

Answers

Answer:

false

Explanation:

it depends most of time so false

Which media choices give you the most benefits? What are those benefits?

Answers

Answer:

Electronic media

Explanation:

1 make you popular

The index finger on your right hand types the

Answers

Answer:

J

Explanation:

X = 0
end = int(input("Pick a number: "))
for num in range(1, end, 2):
#missing line
print(x)
X 10.
This program should print the sum of all the ODD numbers between 1 and the user's number pick the "end" variable)
Write the missing line that will make that possible.
I think its print(1 + end) but If its wrong can I please have feedback cause I'm struggling with this 1.

Answers

The missing line would be x+= num

This means that every time a number is selected from the range it is added to the value of x.

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

Which type of operating system requires a keyboard in order to issue commands?

CLI
GUI
server
mobile

Answers

Answer:

I said CLI.

Explanation:

''A command-line interface (CLI) processes commands to a computer program in the form of lines of text.''- Wikipedia

Answer:

Cli

Explanation: Cause yeah

You want to create a computer that processes data very fast. What do you need to achieve this goal?

a bigger cooling unit
large CPU caches
more ALUs
a bigger hard drive

Answers

Answer:

large cpu cache

Explanation:

trust me

yall please help me in online school i only have 1 week to do it

its online by the way which is why it says computers and technology

Answers

Answer:

we cant see anything

Explanation:

Answer:

add meh back

Explanation:

pls

4. How could you apply some of the ideas, principles, or structures of coding to fields of study, industries, or tasks outside of creating computer programs? Propose at least one way to use "coding" or creating programs outside of computer science and explain how it uses coding-related concepts.

Answers

Answer:

a production plant

Explanation:

"Coding" brings with it a linear way of thinking and problem solving, where one step needs to be taken before moving on to the next step. This can be applied to a wide range of real-life scenarios and industries. For example, a production plant starts with an initial input, that input is taken and used in a set of instructions (method), those instructions take that input and create a new output. Once the new output is created it is then passed on to another set of instructions that takes that output as an input to create a new output. Just like a computer program, a power plant repeats this process in order to a fully working and realized product.

what's my favorite color

black

red

purple

yellow

orange

Answers

Answer:

.

Explanation:

Cloud storage refers to the storage of data on ______.

Answers

Answer:

server

Explanation:

The storage of the data on the server of the web app is known as cloud storage.

The information regarding cloud storage is as follows:

It is the model of cloud computing in which the data is stored on the internet via the cloud computing provider that managed and operates the data storage.Also, it removes the purchasing & managing of the data storage infrastructure.

Therefore we can conclude that the storage of the data on the server of the web app is known as cloud storage.

Learn more about the data here: brainly.com/question/10980404

what is Mainframe computer​

Answers

Answer:

A Mainframe computer, informally called an mainframe or big iron, is a computer used primarily by large organizations for critical applications, bulk data processing such as the census and industry and consumer statistics.

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:

Evan is borrowing a friend's laptop to check out some groovy music files. What can Evan look for to quickly identify
music files?
a messaging app
the hardware
the file extensions
the systems software

Answers

Answer:

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

Explanation:

The correct option for this question is the file extension. Because, by knowing the file extension, you can easily understand and know what the file is. If Evan checking out some groovy music files then he will definitely look at the file format to know that is it the music file or not.

Other options are not correct because:

messaging app function is to send the message, receive and store the message while hardware does not have any relation to identifying the music file and system software is an example of an operating system that also does not help the Evan for looking at music file on the laptop.

Answer:

It is C bruddahs

Explanation:

I need help plz
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???


ALSO ALL my extension that are not to help me with school are deleted

Answers

Answer:

Try to restart your computer, if it doesn't work try looking up what to if anti-virus protection comes up randomly, without needing it.

Explanation:

Not Sure if you'll still get it even after restarting, but if it doesn't then hard shutdown the computer, So it could refresh it.

try turning it off and back on or u can wait till the battery drains out

what do we call the two parts of lift that goes down a mine

Answers

The sheave wheel is a pulley wheel that sits above the mine shaft. The hoist cable passes over the sheave wheel and then down the shaft of the mine.
(copied from google)

Which statement describes what happens when a user configures No Automatic Filtering in Junk Mail Options?

No messages will ever be blocked from the user’s mailbox.
Messages can still be blocked at the server level.
Messages cannot be blocked at the network firewall.
Most obvious spam messages will still reach the client computer.

Answers

Answer:

The last one

Explanation I think it is D because all of the other answers are saying what happen if you filter it.

The majority of obvious spam messages will continue to reach the client's computer. The correct answer is D.

What is junk mail?

Email spam, also known as junk email, spam mail, or plainly spam, is an unrequested email sent in mass. The name is derived from a Monty Programming languages sketch that includes the name of a canned pork product is mentioned. Spam is pervasive, unavoidable, and monotonous.

Back out of the Folder or any message folders users are viewing to access the Mailboxes view. The Junk folder is located beneath the Drafts and Sent directories in the Mailboxes view.

The Junk Email Filter settings can be changed in the Junk E-mail Dialogue box. Click Junk in the Deactivate group on the Home tab, and then click Garbage E-mail Options.

Most obvious spam messages will still reach the client's computer. Then the correct option is D.

More about the junk mail link is given below.

https://brainly.com/question/28354330

#SPJ6

what is amoeba cell do? max amount of points so pls answer​

Answers

Answer:

Ameoba is an organism which is unicellular and is a free-living cell. it is also a eukaryotic organism ( it has well-defined, membrane-bound cell organelles).

An amoeba cell has to carry out all the functions needed for its survival such as injection of food, digestion of food, excretion of waste, etc

An Amoeba cell is a unicellular organism. It is eukaryotic and has well-defined, membrane-bound cell organelles. Amoebas function as their own living body, so they create energy, move around, and throw out waste on their own.

Kerry is debugging a program. She identifies a line of code to begin execution and a line of code to end execution so that she is only running part of the computer program. Which is she using?
a.variable inspections
b.breakpoints
c.stepping functions
d.line-by-line search

Answers

Answer:

I think it's B on Edge, breakpoints

Explanation:

Answer:

B

Explanation:

SOMEONE PLEASE HELP ME

Answers

Part 1:

x = first variable

y = second variable

print the variables to the console.

Part 2:

// Replace this with your name, today's date, and a short description.

def main():

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

   y = 'I get to learn a lot about python.'

   print(x)

   print(y)

if __name__ == "__main__":

   main()

Part 3:

The purpose of my program was to express separate string variables and print them separately to the console. Also, I was able to demonstrate how functions work.

My program could be useful for storing values in variables for later. Although quite small, my program expresses how easy functions are to use.

I had trouble setting up my functions properly. To fix this problem, I looked back in our notes.

Next time, I will review our notes before starting the assessment. I will also remember how to properly use functions.  

Easy 10 point but can u plz help me

Answers

Answer:ITS TRUe

Explanation:there ya go :^

How do you change the behavior of the VR Robot?

Answers

Answer:

You can not do it

Explanation:

Answer:

To be able you have to change some of the robots codes, within the game.

Explanation:

I WILL GIVE BRAINLIEST TO WHO ANSWERS FIRST AND CORRECTLY.
select all that apply
Select the strategies below that are likely to increase audience attention.

Match special effects to content.
Use lots of different animation styles on each slide.
Use consistent transitions.
Use similar animation styles on each slide.
Avoid the use of animations.
Vary the use of transitions for each slide.

Answers

Answer:

All except the last one I hope

Explanation:

my school blocked a lot of gaming websites.. do you have any good games that are unblocked???

Answers

Answer:

Well, it depends some systems are more strict... Krunker wasn't blocked now it is for a different district. But, the Google Doodle games are never blocked. Try the Ghost Game 2016 from Google... Or the Snake Game, or Pac Man. There are a few others like Solitaire. Browse the Google Doodles.

Hope this helps!

Answer:

cliker heros and cool math games are some

Explanation:

Other Questions
7. True or false: to lessen the impact of heat waves, roads can be painted white. Ivan reads a story about a population of mice that become stranded in a dark jungle. Some mice are dark brown, while others are white. According to the process of natural selection, predict which mice would be more successful living in a dark jungle. Explain natural selection and your prediction. How do we determine climate change (amount of time, trends, etc)? 1. What do you think is theart form of the given artwork?2. What isyourreaction to this art work? What is the ratio of the area ABC to the area of ABD? What is one of the most common effects of land reclamation?A. decreased agricultural yieldsB. decreased risk of floodingC. increased land subsidenceD. increased risk of earthquakes Ok I rlly need help with this question its rlly hard for me theres a picture to show > helppp Which transformation can be used to show that LMN is similar to PQR?A. Dilation, reflectionB. Reflection, translationC. Rotation, dilationD. Translation, rotation BRAINLIEST A type of mold doubles every 9 hours. If you started with 14 spores in a Petri dish, how many spores would you have after 45 hours? After 45 hours, there would be_______spores. What does the underlined phrase mean in the following sentence?Mein Freund ist Spanier.ChineseAustralianSpanishSwiss Help me answer that question and how are you supposed to know which one is the predator and the prey like how can you tell? Please help, I have no clue how to do this. Its a question from my fundamentals of computing class martin luther king jr i have a speech summary A thesis statement why Music can change the world? 9/g + 2h + 5 When g = 3 and h = 6 hi Google what is 3.6 * 10 Why is the supreme court called the court of records?Please i need it A.S.A.P (With a little bit long ans) (6+4)(-12)QUICKLYYYYY I NEED TO KNOW WHAT THE ANSWER IS! Consider the equation : 2x+6y=102 x + 6 y = 10.If we graph the equation, what is the slope of the graph? Remember you can rewrite the graph in slope-intercept form to help determine your solution: y=mx+b. m = slope. which is the best estimate of -14 1/9 -2 9/10