Parse the text of a .env file into a dictionary.
KEY=VALUE. Split on the first = only (values may contain =).#.=.Implement parse_env. Input: text: str. Returns: dict[str, str].
def parse_env(text: str) -> dict[str, str]:
result = {}
for line in text.splitlines():
pass
return result
Run executes the public tests. Submit grades against public and hidden tests.
Parse the text of a .env file into a dictionary.
KEY=VALUE. Split on the first = only (values may contain =).#.=.Implement parse_env. Input: text: str. Returns: dict[str, str].
def parse_env(text: str) -> dict[str, str]:
result = {}
for line in text.splitlines():
pass
return result
Run executes the public tests. Submit grades against public and hidden tests.