The output of a Repeat loop is already a list, so you can do this too:
Repeat 10 Ask for Input (Text) End Repeat Set Variable (MyList) to (Repeat Results)
Community dedicated to Apple Shortcuts.
The output of a Repeat loop is already a list, so you can do this too: