Login
Remember
Register
All Courses
Ask a Question
Questions
Unanswered
Ask a Question
Blog
Tutorials
Interview Questions
Back
Login
Explore Courses
Blog
Tutorials
Interview Questions
community
Python
You can use a minus sign to make a negative...
You can use a minus sign to make a negative number like -2. What happens for each of the following? >>> 2++2 >>> 2--2 >>> 2+-2 >>> 2-+2
You can use a minus sign to make a negative number like -2. What happens for each of the following? >>> 2++2 >>> 2--2 >>> 2+-2 >>> 2-+2
0
votes
2
views
asked
Jun 24, 2021
in
Python
by
Don
(
160
points)
>>> 2++2
>>> 2--2
>>> 2+-2
>>> 2-+2
Please
log in
to add a comment.
Please
log in
to answer this question.
0
Answers
Related questions
0
votes
0
answers
Write a new recursive function countup that expects a negative argument and counts “up” from that number. Output from running the function should look something like this: >>> countup(-3) -3 -2 -1 Blastoff!
asked
Jun 24, 2021
in
Python
by
Don
(
160
points)
python
0
votes
1
answer
How can I insert an operation sign between 2 float numbers and calculate the result?
asked
Jul 30, 2019
in
Python
by
Rajesh Malhotra
(
19.9k
points)
python
0
votes
1
answer
Is there a way to put negative sign before dollar sign
asked
Jun 22, 2020
in
R Programming
by
ashely
(
50.2k
points)
data-science
r
rprogramming
0
votes
1
answer
Allowing only float numbers, with one decimal point, AND A NEGATIVE SIGN (Python/Kivy/Regex)
asked
Jun 21, 2020
in
Data Science
by
blackindya
(
18.4k
points)
data-science
python
0
votes
1
answer
How can I use e (Euler's number) and power operation in python 2.7
asked
Sep 11, 2019
in
Python
by
Sammy
(
47.6k
points)
python
math
31k
questions
32.8k
answers
501
comments
693
users
All categories
Python
(3.4k)
Java
(2.2k)
SQL
(1.6k)
Linux
(373)
Big Data Hadoop & Spark
(1.3k)
Data Science
(3.3k)
R Programming
(867)
C Programming
(35)
DevOps and Agile
(2.9k)
Docker
(61)
AI and Deep Learning
(1.4k)
Machine Learning
(1.2k)
AWS
(2.5k)
Azure
(1.6k)
GCP
(226)
RPA
(616)
Selenium
(212)
Software Testing
(59)
Blockchain
(436)
Salesforce
(823)
Others
(585)
BI
(1.9k)
IoT
(24)
Web Technology
(1.5k)
Cyber Security
(359)
Digital Marketing
(331)
Technology Trends
(121)
SEO
(105)
Informatica
(22)
UI UX
(153)
Electric Vehicle
(24)
Investment Banking
(56)
Supply Chain Management
(30)
...