+ 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

8th Aug 2020, 12:10 PM
Iveren Summer
Iveren Summer - avatar
2 odpowiedzi
+ 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 ☺!
8th Aug 2020, 1:45 PM
🇺🇦 Drake CDR 🇺🇦
🇺🇦 Drake CDR 🇺🇦 - avatar
+ 4
Iveren Summer Also please tag your code language so you get better answers
8th Aug 2020, 12:16 PM
Rik Wittkopp
Rik Wittkopp - avatar