Python Forum
print result in OUTPUT not in TERMINAL
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
print result in OUTPUT not in TERMINAL
#1
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
Reply
#2
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?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python VS Code: using print command twice but not getting output from terminal kdx264 4 1,075 Jan-16-2023, 07:38 PM
Last Post: Skaperen
  How to output one value per request of the CSV and print it in another func? Student44 3 1,320 Nov-11-2022, 10:45 PM
Last Post: snippsat
  Saving the print result in a text file Calli 8 1,783 Sep-25-2022, 06:38 PM
Last Post: snippsat
  How to print the output of a defined function bshoushtarian 4 1,278 Sep-08-2022, 01:44 PM
Last Post: deanhystad
  Print List to Terminal DaveG 2 1,430 Apr-02-2022, 11:25 AM
Last Post: perfringo
Sad Want to Save Print output in csv file Rasedul 5 10,902 Jan-11-2022, 07:04 PM
Last Post: snippsat
Photo print output none 3lnyn0 4 1,820 Nov-01-2021, 08:46 PM
Last Post: 3lnyn0
  output correction using print() function afefDXCTN 3 11,063 Sep-18-2021, 06:57 PM
Last Post: Sky_Mx
  print (output) taaperaban 3 1,917 Sep-03-2021, 04:23 PM
Last Post: deanhystad
  Using print command to send command to rasberry pi terminal MondazeBear 2 1,861 Aug-02-2021, 03:15 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020