+ 1
HELP!
I m not understanding why the 1st part of the compression do not work! https://code.sololearn.com/cRFWtmeBSplh/?ref=app
7 Réponses
+ 2
1. range[8] needs to be range(8)
2. if requires a logical operation to evaluate, octet[i]=octet[i+1] is assignment, use double equal sign, ie. == to do an evaluation.
+ 2
I take it back you can do multiple assignments but it will save the same pointer in all of them so if you edit one all of them are changed.
+ 1
I can't do 8 assignments?
+ 1
Look I fixed the 2 errors and it worked! But another one appeared!
+ 1
it's because if i = 2, octet[i+7]= octet[9] which doesnt exist
0
I fixed it for the moment
0
Thx for your help