An tasc á lódáil…
Slices help you split a string neatly into parts, such as when processing a code or message. Write a function first_half that takes a string s with an even length. Return only the first half of the string, leaving out the second half.
"WooHoo""Woo""HelloThere""Hello""abcdef""abc"def first_half(s: str) -> str:
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"WooHoo""Woo""HelloThere""Hello""abcdef""abc""""""a""""Hello, World!""Hello,"