Forum tips

Writing in Hebrew
If you post a forum message in Hebrew (or English mixed with Hebrew), add[[div style="direction:rtl;"]]
before your message, and[[/div]]
after it (each on a separate line).

Including Python code
When including python code in your message, if you don't want to lose the indentation, and also benefit from syntax highlighting, add[[code type="python"]]
before the code, and[[/code]]
after it (each on a separate line).

BoldPut ** before and after the text: a**b**c —> abc

UnderlinePut __ before and after the text: a__b__c —> abc

Raw textPut @@ before and after the text, to ignore formatting: @@a**b**c@@ --> a**b**c

Indeed 2 errors in the Hamming (7,4,3) code will be interpreted as a single error.
In class, I talked about 5 scenarios that can happen, with increasing number of errors:
1) no errors
2) can detect + fix
3) can detect and know you cannot fix
4) can detect and do not know you cannot fix (that is, you think you can fix but you are wrong)
5) cannot detect

The point is that you can either decide to fix errors, in which case you handle correctly scenarios 1+2 (and hope to never have to deal with worse cases), or to detect errors, in which case you are handling correctly any of scenarios 1-4. Doing both at the same time (that is, in the same algorithm) is impossible, as in the case you ask about.

I suggest taking a second look at the "index code" you saw in the recitations. This issue is raised there as well.