Yes, that kind of tool - that lets you run Python in a browser - can be useful. I had discovered, tried out and blogged about some of them earlier (also trinket.io, which you mention):
Codingbat, Progress Graphs and Michael Jordan:
(for Java and Python - when I tried it)
https://jugad2.blogspot.in/2013/02/codingbat-progress-graphs...
Online Python Tutor looks quite interesting:
(for Python)
https://jugad2.blogspot.in/2013/03/online-python-tutor-looks...
PythonMonk - learn Python in the browser:
(for Python)
https://jugad2.blogspot.in/2013/04/pythonmonk-learn-python-i...
glot.io, an open source pastebin with runnable snippets:
(for multiple languages)
https://jugad2.blogspot.in/2017/04/glotio-open-source-pasteb...
Some of them use emscripten, IIRC.
Edit: These tools are good for beginners to learn the basics of the language. For more complete learning, I still think the traditional method of using the command line tools such as the interpreter and a text editor, and an IDE, are useful and recommended. Interaction with the real OS is a part of the learning of any (at least industrial) programming language (maybe there are some specialized exceptions) - i.e. things such as files, databases, directories, users, processes, peripherals, etc. - and not much of that can be done in the browser-only environment that these tools have.
In fact, since I am a trainer too, I sometimes come across some of my students who do not know the basics of dealing with an operating system, even as a user. E.g. some of them can only use the PC via the GUI (e.g. in Windows) and are not familiar with the command line and its commands, or even with concepts such as drives, pathnames, filenames, absolute vs. relative paths, how to reference a file in dir B from dir A, etc. In such cases I always show them some of the basics of that stuff and give them references for further learning. And I tell them that if they do not learn that stuff (or look down on it, as a few of them tend to do), it is like knowing how to drive a car (programming) but not knowing how to walk from your house to the car and from the car to the shop - in other words, you are not fully capable to even use a car due to that :)