# Change Up of Code Segments a bit confusions

**URL:** <https://forum.code.org/t/change-up-of-code-segments-a-bit-confusions/26310>\
**Category:** CS Principles\
**Tags:** csp-unit-5-lesson-10\
**Created:** [April 12, 2019, 2:22pm UTC](https://forum.code.org/t/change-up-of-code-segments-a-bit-confusions/26310 "2019-04-12T14:22:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbrunner](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mbrunner/32/5271_2.png) [@mbrunner](https://forum.code.org/u/mbrunner)\
**Post date:** [April 12, 2019, 2:22pm UTC](https://forum.code.org/t/change-up-of-code-segments-a-bit-confusions/26310/1 "2019-04-12T14:22:54Z")

</div>

In lesson 10, while walking students through defining the update score function, the student instructions say to use p1Score = p1Score + amt.

However, the teacher directions and the Practice Response (puzzle 25) use the code p1Score += amt

This was a bit confusing to the students who were paying close attention.

Either I missed it, or we didn’t talk about how the two codes “logic” are interchangeable.

If I missed this somewhere in Unit 5 and you remember where it is, please let me know.

---

<div class="post-metadata">

**Author:** ![frank\_w\_lee](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/frank_w_lee/32/4895_2.png) [@frank\_w\_lee](https://forum.code.org/u/frank_w_lee)\
**Post date:** [April 14, 2019, 2:13am UTC](https://forum.code.org/t/change-up-of-code-segments-a-bit-confusions/26310/2 "2019-04-14T02:13:51Z")

</div>

Hi @mbrunner,

Hm, that is confusing. I’m not sure if that interchangeability is mentioned anywhere in the curriculum (I couldn’t find it anyway), but yes, x += 1 is shorthand for x = x +1. The shortest way to write this is x++ (only if incrementing by 1).

I’ll check with [code.org](http://code.org) staff, as this abrupt use of an untaught notation can definitely be confusing if it wasn’t taught previously.

Frank
