First occurrence characters
Your task
Given a string s, return a new string containing each character only the first time it appears, preserving the original left-to-right order. For example 'banana' becomes 'ban'. The string may be empty and may contain any printable characters.
Examples
dedup_keep_order(s: str) -> strExample 1
Input
dedup_keep_order("banana")Output
"ban"