Category "output"

problems with """input().split() in loop""" in python

n, m, k, r = tuple([int(i) for i in input().split()]) roads = [] for road in range(m): t = tuple(list(map(int, input().split()))) roads.append(t) pri

Pyfiglet/Python - Print Pyfiglet ASCII in one line

This is my code to print "x t e k k y" whit a cool ASCII font using pyfiglet, but the output always displays in 2 lines, whith gives a bad aestethic, is there a

How to capitalize the First letter of each word in python?

You are asked to ensure that the first and last names of people begin with a capital letter in their passports. For example, alison heck should be capitalised c

How to suppress unwanted Plot figure object information in Jupyter Notebook

I want to suppress any text output when I run Jupyter Notebook cell. Specifically I output some figures and each is accompanied by something like: <Figure s

How do you input and output text with Pyscript?

I’m learning py-script where you can use <py-script></py-script> in an HTML5 file to write Python Code. As a python coder, I would like to try

OUTPUT $action in SQL server, casing the updated rows output for a specific column

I am making merge upserts to my data warehouse. I don't need to keep the history on this particular object, so I'm using a type i slowly changing dimension. I'm

"C programming language" - Counting characters anomaly?

In The C Programming Language book by Ritchie & Kernighan, in §1.5.2 Counting Characters, two versions of the program are given: #include <stdio.h

Python, print string on the same line for screen output

I am lost on printing a character on the same line. For example card = "--Diamonds--" Output needed: --Diamonds-- --Diamonds-- --Diamonds-- --Diamonds-- -

Fscanf Doesn't Take Inputs properly

I'm trying to take inputs with fscanf and to give output to another file but fscanf doesn't give the input it should give. Here is my code: #include <stdio.h

How do I print colored text to the terminal in Rust?

How do I output colored text to the terminal using Rust? I've tried using the special escape characters that I found in this python answer, but they just print

Scanning multiple lines using single scanner object

I a newbie to java so please don't rate down if this sounds absolute dumb to you ok how do I enter this using a single scanner object 5 hello how do y

What is the correct input to have the program print the sentence: Exactly! Good Job

Read and understand the following code. Provide the correct input to have the program print the sentence: Exactly! Good Job. Before submitting your answer, plea

How can I get the correct output in this program?

(1)Prompt the user to enter two words and a number, storing each into separate variables. Then, output those three values on a single line separated by a space.