In terms of text adventures, almost anything will do.
I’ve started with Quest, via http://textadventures.co.uk/, and to be honest it’s helped a lot in terms of learning programming and getting things to behave.
Another option is Twine, via https://twinery.org/, which isn’t necessarily as beginner-friendly as Quest but it works more for hosting online and making a game playable via HTML (webpage). (Example: Demo: A Family's Fattening Holiday v0.1)
Myself, I’m moving to Twine for better accessibility but only because using Quest helped me so much. And heck, I might still use quest to figure out certain commands, even if the CSS code isn’t exact, I can still LOOK at it to get an idea. If the Quest engine improves in other ways, I might use it again, but it’s a one-man development so we’ll see if/when that comes.
I hope others will give you some good suggestions, too. I hope this will help!