Python Forum
print result in OUTPUT not in TERMINAL - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: print result in OUTPUT not in TERMINAL (/thread-25898.html)



print result in OUTPUT not in TERMINAL - picasso - Apr-15-2020

hello
i use VSCODE and i want to see my results in OUTPUT section just using Ctrl+Alt+N not using RUN PYTHON FILE IN TERMINAL. when i use RUN PYTHON FILE IN TERMINAL everything is working and showing my result in terminal.But if i want to see my result in OUTPUT section using Ctlr+Alt+N instead of showing the result of current code it is showing the result of the last code which was run in TERMINAL.
how can i see my result in OUTPUT not initially running in TERMINAL

>>>print("HELLO")
-> run python file in terminal
TERMINAL: HELLO
-> Ctrl+Alt+N
OUTPUT: HELLO

>>print("WORLD")
-> Ctrl+Alt+N
OUTPUT: HELLO


RE: print result in OUTPUT not in TERMINAL - deanhystad - Apr-15-2020

What command is executed when you type Ctrl+Alt+N? I am using visual studio code and do not have a shortcut defined for that sequence. Did you import some keymap?