python 3.x - can some one explain what is iv = enc[:16] and enc= enc[16:] means? -


iv = enc[:16]  enc= enc[16:]  

what meaning of above:

as of using in blunt way please explain, wanted know meaning of i'm using ...

it means you're assigning first 16 characters of enc iv , rest of characters enc:

string = "abcdefg" print(string[:3]) # abc print(string[3:]) # defg 

Comments