HF RL Explorer

Task: Read and Write Compressed JSON Objects with Gzip in Python 3

Task: Read and Write Compressed JSON Objects with Gzip in Python 3: a task in Terminal-Lego-15k (Harbor dataset). Create a Python 3 script that correctly writes and reads compressed JSON objects to/from a gzip file. The task addresses a common issue where Python 3's gzip module requires bytes-like…

The task

Create a Python 3 script that correctly writes and reads compressed JSON objects to/from a gzip file. The task addresses a common issue where Python 3's gzip module requires bytes-like objects rather than strings.

Part of PrimeIntellect/Terminal-Lego-15k.