menu
Qamnty
Login
Register
My account
Edit my Profile
Private messages
My favorites
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.
Ask a Question
Questions
Unanswered
Tags
Ask a Question
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.
asked
May 19, 2021
139k
views
5
votes
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.
Computers & Tech
high-school
Egret
asked
by
Egret
8.0k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
3
votes
In python
if testA == 25:
num1 += 5
else:
num1 -= 5
I hope this helps!
Nuoritoveri
answered
May 24, 2021
by
Nuoritoveri
8.1k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
May 5, 2024
62.9k
views
Testa is the outer protective covering of food. 1. True 2. False
Arne S
asked
May 5, 2024
by
Arne S
8.5k
points
Social Studies
high-school
1
answer
0
votes
62.9k
views
asked
Dec 27, 2024
132k
views
What generalization about alcohol consumption and the sexual victimization of women was concluded by Marla Testa? a) Higher alcohol consumption decreases the risk of sexual victimization. b) Alcohol consumption
Tatarize
asked
Dec 27, 2024
by
Tatarize
8.3k
points
Social Studies
high-school
1
answer
5
votes
132k
views
asked
Mar 11, 2024
178k
views
What is the name of the young developing plant inside the seed? a) testa b) embryo c) ovule d) zygote
Jjpp
asked
Mar 11, 2024
by
Jjpp
8.2k
points
Biology
high-school
1
answer
3
votes
178k
views
Ask a Question
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qamnty