This is the basics for VEXcode Pro V5, which would probably work for any C++:
I imagine the default printing commands for Python would work in VEXcode V5. I also think there would be a block for this somewhere.
Summary: Yes you can do that by printing to terminal.