Computer Science - Text-Based Programming - Python - String manipulation - String Manipulation Drill
Complete string operations. P1: 'Extract domain from email' → email='[email protected]'; domain = email.split('___')[1] [@]. P2: 'Check if palindrome' → word='racecar'; is_palindrome = word == word[___] [::-1]. P3: 'Count words in sentence' → sentence='Hello World Python'; count = len(sentence.___('