An tasc á lódáil…
A Mars rover repeatedly sends the same signal, SOS, but some characters may be changed during transmission. The function mars_exploration receives the received string s, whose length is a multiple of 3. Compare it with the expected repeated SOS message and count how many characters are in the wrong positions. Return the number of differences.
"SOSSPSSQSSOR"3"SOSSOT"1"SOS"0def mars_exploration(s: str) -> int:
Logáil isteach chun stair na n-aighneachtaí a fheiceáil
Logáil isteachLogáil isteach chun an Meantóir IS a úsáid
Logáil isteach"SOSSPSSQSSOR"3"SOSSOT"1"SOS"0"SOSSOSSOS"0"XOSXOS"2"sosspssqssor"12