New course!
Every coder should learn
Generative AI!
Try a free lesson
Courses
Courses
Code Compiler
Code Compiler
Discuss
Get Pro
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
x += 2 or x =+ 2 - difference
operators
python
2 Votes
3 Answers
14th Jun 2017, 8:52 AM
Paweł W.
What the expression " x += 1" means?
regular-expressions
0 Votes
3 Answers
21st Jun 2017, 4:52 AM
Vishal Suthar
what dose this Sign mean in Java Sign +=
arrays
1 Vote
3 Answers
14th Jun 2018, 3:57 AM
Sujay Sonwalkar
What does += means? And why we use it?
c#
operators
1 Vote
4 Answers
16th Jun 2016, 8:31 PM
Utpal Kumar
I'm seeing: += a lot. What does it mean?
java
1 Vote
4 Answers
25th Feb 2017, 1:51 PM
Thomas Molendijk
What means this in java please " += "
java
0 Votes
2 Answers
13th Aug 2022, 2:11 PM
wissal boussekine
What does this {total += number} mean, Why The + ?
c++
0 Votes
7 Answers
17th Oct 2016, 1:58 PM
wybe
Why a += "abc" not equal a = a + "abc"
list
python3
strings
0 Votes
6 Answers
30th Jul 2019, 5:31 AM
Дмитрий Кудря
Is there a difference between += and =+?
operators
swift
0 Votes
2 Answers
10th Jan 2016, 2:22 AM
quran
what is output of x += x +=x++ ;
1 Vote
2 Answers
24th Sep 2017, 11:08 AM
Kingooo
What is the meaning of += symbol in python?
1
x
1 Vote
2 Answers
2nd May 2017, 12:33 PM
Heerak Ghanesh (HERO)
can any body explain me sum += myArr[x]; this part work.
java
2 Votes
5 Answers
25th Jul 2018, 7:51 AM
Yimer Indris
what is the output of def func(x): res = 0 for i in range(x): res += i return res print(func(4))?
python
-11 Votes
17 Answers
7th Jun 2018, 2:21 PM
Saurav nalla
x = 0 while x <= 20: print (x) x += 2
loops
python
2 Votes
4 Answers
19th Oct 2016, 2:38 PM
Blas Ortiz
a += b is not always a = a + b?
python
0 Votes
2 Answers
7th Oct 2019, 6:34 AM
rez cebov
<?php $x = 50; $x += 100; echo $x; ?> what the value of x
php
6 Votes
11 Answers
12th Jun 2018, 4:46 PM
MOHAMED BURMA MOHAMED ABDALLA
What would be the difference between += and =+?
c++
operators
0 Votes
1 Answer
11th Sep 2016, 3:38 PM
thrillho
Python’s While and Continue: why does i += 1 placement matter?
continue
python
while_statements
0 Votes
3 Answers
21st Dec 2021, 5:47 PM
Mikayla
Whats is rhe meaning of "total += number" in the example?
c++
loops
0 Votes
3 Answers
28th Feb 2017, 9:54 AM
Shrey Mudgal
I can't understand how and what is added here :( Не могу понять как и что тут прибавляется :( how to understand sum+=i++
+=
for
java
0 Votes
14 Answers
18th Mar 2021, 4:29 PM
Азизов И. A.
why when I try to make my_id += 1 gives me an error
fix
help
python
1 Vote
5 Answers
14th Aug 2021, 8:01 AM
Alisa Zaiceva
Can anyone explain this code? ( Mainly - {sum += myArr[x]; )
array
code
java
2 Votes
3 Answers
14th Mar 2018, 12:38 PM
Ratnesh Mishra
What is the output of this code? x = 9 x%= 2 x += 3 print(x)
sololearn
2 Votes
4 Answers
25th Apr 2022, 2:50 PM
Chabolu Dharaneesvar
but if I write i += 1 the result is infinite, why?
generators
0 Votes
2 Answers
18th Jun 2021, 1:34 PM
Likhon
How do i use similiar to assign operator += in sql?
mysql
php
1 Vote
2 Answers
17th Dec 2017, 6:07 AM
kito fool pace
Find the time complexity of this expression{ sum += a*b*c; }
complexity
-1 Vote
1 Answer
7th Sep 2022, 6:56 AM
Gayatri Borse
Hi, somebody know what’s wrong with my operator += , i wanted to overload it
c++
help
operator
operator-overloading
1 Vote
6 Answers
4th Jul 2021, 7:22 AM
Aleks kryzhanivskyi
n = int(input()) length = 0 while n > 0: n //= 10 length += 1 print(length)
python3
0 Votes
4 Answers
17th Oct 2020, 2:46 AM
Rahul Prasad
Why x++ before adding sum += ... ?? Thought it starts with zero not with one?
arrays
java
2 Votes
9 Answers
15th Dec 2017, 12:20 PM
PhoenixPlay
for (int x = 0 x <= x += ) { cout << << endl; }
c++
loops
0 Votes
5 Answers
21st Dec 2018, 10:03 AM
Najam Us Saqib
int res=0; for(int i=1;i<10;i+=3) { if(10/i==2) continue; res += i; } cout<<res<<endl;
explain
program
0 Votes
1 Answer
22nd May 2020, 2:38 PM
Karan Dewangan
int result = 0; for (int i = 0; i < 5; i++) { if (i == 3) { result += 10; } else { result += i; } }
explain
1 Vote
2 Answers
11th Sep 2016, 4:16 AM
Syed Maqsood
Please explain what the purpose of an x += operation is and what it's doing
operators
python
1 Vote
6 Answers
2nd Aug 2016, 5:06 PM
Austin Shepard
var x = 0; for (; x <= ; x += ) { document.write(x); }
#javascript
0 Votes
3 Answers
3rd Nov 2020, 12:19 PM
SANDHIYA S
c = 0 for x in range(10): for y in range(5): c += 1 print(c)
python
-1 Vote
3 Answers
12th Jun 2021, 5:51 AM
Deepak Murmu
Cual es el resultado de esta operacion x = "spam" print(x) x += "eggs" print(x)
operators
python
1 Vote
3 Answers
13th Apr 2020, 3:59 PM
Javier Garcias
var sum=0; for(i=4; i<8; i++) { if (i == 6) { continue; } sum += i; } document.write(sum); the output is 16.... can a
javascript
loops
3 Votes
22 Answers
12th Oct 2016, 11:43 AM
Shabana.A
def func(x): res = 0 for i in range(x): res += i return res print(func(7))
function-arguments
modules
0 Votes
2 Answers
12th Aug 2020, 7:46 AM
Shubham Kumar
Python - How come zzz[0] += [[]] is not the same as zzz[0]= zzz[0] + [[]] ?
[[]]
[]
list
python
2 Votes
2 Answers
10th Oct 2020, 8:08 PM
Solus
What will be the result stored in x after evaluating the following expression: int x=4; x += (x++) + (++x) + x
java
2 Votes
11 Answers
10th Sep 2016, 2:33 PM
Bharat Gunhalkar
What is the output of this code? int result = 0; for (int i = 0; i < 5; i++) { if (i == 3) { result += 10; } else { result += i;
c#
1 Vote
4 Answers
27th Nov 2017, 3:26 AM
Madhuri Bhamare
// Button creation starts... let countjumps = 0; function count() { countjumps += 1; console.log(countjumps )
f
1 Vote
1 Answer
26th Aug 2022, 9:33 PM
January Martine
What is the output of this code? int result = 0; for (int i = 0; i < 5; i++) { if (i == 3) { result += 10; } else {
arrays
java
6 Votes
29 Answers
29th Jun 2017, 6:46 AM
Walter Mugo
Why do In-place operators allow you to write code like 'x = x + 3' as 'x += 3'?
operators
1 Vote
2 Answers
14th May 2018, 11:49 AM
Jujar Panesar
for (doublCe y = .1; y != 1.0; y += .1) { printf("%f\n", y); }
c++
-1 Vote
1 Answer
5th Dec 2021, 8:47 AM
Christine Jane Dulay
What does x += 1 this line do? I get same output even if I don't write this line
whileloops
0 Votes
4 Answers
18th Aug 2021, 2:17 PM
Tanvir Ahmed
What is the value of k after operation? int k = 5; k += k++ + ++k; why its output depends on compiler?
dhaval
sololearn
6 Votes
11 Answers
24th Dec 2016, 7:29 PM
Ajay Agrawal
Why is the output 17 ? (this is the array modul quiz(SoloLearn)) int result = 0; for (int i = 0; i < 5; i++){ if (i == 3) { result += 10; }else{ result += i; } } System.out.println (result);
java
0 Votes
5 Answers
22nd Jul 2016, 9:41 AM
Peter Müller
for (int x = 0 x <= x += ) { cout << << endl; }
c++
loops
0 Votes
1 Answer
25th Jun 2018, 9:41 PM
Windell
# python i = 0 while i < 10: print("hallo") i += 1 Brother and sister help this programming error
help
1 Vote
3 Answers
15th Aug 2020, 2:23 AM
Hacker Tamil Tamila
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
2
3
Next >
Hot today
Internal vs external JS
2 Votes
Can anyone guide me
0 Votes
Are certifications from Sololearn Valid to proofe or are they good or not?
0 Votes
What is wrong with my code plzz tell me i am in hurry
0 Votes
I just I just resolved the dictionary problem , the program doesn’t allow me to access to the next lesson
0 Votes
Snake game
0 Votes
Truth Table Generator wont show correct result when user inputs Logical NOT
1 Votes
Why sololearn did not allow us to...
0 Votes
Python Core
0 Votes
Whats the problem with my code i try to learn loops but apperently i suck at it lol
0 Votes