Embedded Data File?

Was thinking about something today.

In a JavaScript or Python project, is it possible to embed an input file in a project and then consume it as a data file?

For a concrete example, I was thinking about how I might go about crafting a solution to Day 1 of the 2021 Advent of Code using MakeCode Arcade.

Advent of Code 2021