Data Engineer, Software Engineer, Interview, Leetcode.
state. String Operations: Concatenation: + Repetition: * String formatting using format() or f-strings (Python 3.6+): greeting = f”Hello, {name}!” List Operations: Append: fruits.append(“orange”) Remove: fruits.remove(“banana”) Extend: fruits.extend([“grape”, “mango”]) Slice: first_two = fruits[:2]