Answer to Question #292592 in Python for King fresh

Question #292592

You can use a minus sign to make a negative number like -2. What happens for each of the following and why?

>>> 2++2

>>> 2--2

>>> 2+-2

>>> 2-+2


1
Expert's answer
2022-01-31T16:18:04-0500

2++2 = 4

2--2 = 4

2+-2 = 0

2-+2 = 0


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS