0

I have a program in C# that prints out a value with Console.WriteLine(). In Python I want to read from the terminal to get this value in order to do other calculations with it in my Python script. Does anyone know how to do this? It would be very much appreciated :)

I have searched for quite a while but all I find is how to use input() to get user input from the terminal, which is not what I want.

Example: C# prints to console -> Python script reads the line from console and then does some other operation.

  • @Tomerikoo Not really, they run another python script within python with subprocess and then read that output. I want to read what C# prints out with Python. – ollieelliot Feb 17 '22 at 18:01

0 Answers0