+ 1
I am a beginner and i find this difficult like, you have x=a ,x+=3 the answer i thought of was a3 but it isnt showing up correct
2 Antworten
+ 24
Well, this is simple regardless of the language, but I assume it's Python.
We have an assignment operator "=", which makes X equal to the numerical value of A, not THE letter "a". And it works from right to left. After that we add 3 to whatever number A was assigned. Now let's look at the example below.
x = 1
a = 3
x = a
print (x)
x += 3
print (x)
Output:
3
6
Use this example in the Playground. Happy coding ☺!
+ 4
Iveren Summer Also please tag your code language so you get better answers