Questions tagged [output]
The externally observable consequences of calling a program on some input
output
9,876
questions
0
votes
0
answers
19
views
Creating an output log got an executable -- python
In python, how can I code a log that documents everything printed in the command window and saves it to a new text file? the code being ran is an executable that calls 3 other scripts, and it has pop ...
0
votes
1
answer
33
views
Python code giving different ouputs for a function call when input taking from the python console or terminal
The following code is generating two different output if executed in console(>>> ) or from a function.py file ($ python3 function.py).
1 def test():
2 print("I am happy")
3 ...
0
votes
0
answers
25
views
Output mode configuration: When to use push/pull vs open drain? [closed]
Hello guys I'm relatively new to Embedded engineering.
I wanted to know if there's any specific rule that experienced embedded engineers use when selecting when to use one of these output ...
0
votes
2
answers
39
views
dump data on C# like PHP
In PHP you can dump a variable data like:
<?php
$foo = new stdClass();
$foo->prop1 = "ABC";
$foo->prop2 = 2024;
var_dump($foo);
output:
object(stdClass)#1 (2) {
["prop1&...
0
votes
1
answer
54
views
How to write to a user input file name in python [closed]
I have to create and write to a file that's named by user input.
The user is naming the file so the program cannot have a set file name to open. I thought I could do this by setting an input variable. ...
0
votes
1
answer
30
views
Redirecting output to $null in PowerShell, but ensuring the variable remains set with ForEach-Object -Parallel
I have this code:
$Newarr | ForEach-Object -Parallel {
Start-AzVm -ResourceGroupName $_.ResourceGroupName -Name $_.Name
}
$Newarr contains a set of data that I don't want to print as output, but ...
0
votes
3
answers
57
views
When I select the checkbox, it displays its value just fine. When I de-select it, it continues to display
In the image, I first selected the first two checkboxes and clicked to calculate. Then, I unchecked the second one and clicked again to calculate, and it gave me still both values and total price. ...
1
vote
2
answers
57
views
gnuplot storing command output to a variable
How do you save the output from a gnuplot command into a (string) variable? For example, I need to know the current xdata format setting in a "call"ed helper script, but I cannot recall ...
0
votes
2
answers
40
views
Export latex table from summary of rddensity function in R
I am interested in exporting the summary of the rddensity function in latex in R. I've tried to use modelsummary without sucess, and capturing output also hasn't worked out. My objective is to export ...
-1
votes
1
answer
106
views
Generating empty output file
I wrote a code for generating an output file in my system in C++. The function is getting executed, but the only problem is that the output file generated is empty. Can anybody please tell me what I ...
-8
votes
0
answers
65
views
Weird print mistake in Python
I am trying to solve problem set 4 ("Adieu, Adieu") in the cs50p. The problem asks:
Implement a program that prompts the user for names, one per line,
until the user inputs control-d. ...
0
votes
1
answer
56
views
unable to get persian text output in visual studio code [duplicate]
When I want to print a persian text in visual studio code, it displays it with question marks in the terminal. Can someone help me to fix that please.
public class Ex1 {
Scanner input = new ...
0
votes
0
answers
9
views
Toolbar overlapping on the text and whenever I create a function outside the MainActivity Class it doesn't gets launched
Whenever I execute the text, the text overlapping over the toolbar and whenever I create a function outside the MainActivity Class it doesn't gets launched. Also when I try to make a separate function ...
0
votes
0
answers
83
views
Visual Studio cannot output Unicode Characters [duplicate]
I've made a program for school; that goes through a plain text file and makes a concordance for each word. It will take each word, remove non-alphabetical characters from the front and back, and put ...
0
votes
1
answer
42
views
How to correctly and simply display multiline string literal in Jupyter Notebook?
I am looking for a solution that is the most convenient for casual, exploratory notebook use.
I have several functions that output strings with multiple lines. When this appears in the output cell of ...