Category "input"

input() error - NameError: name '...' is not defined

I am getting an error when I try to run this simple script: input_variable = input("Enter your name: ") print("your name is" + input_variable) Let's say I type

How to take a tuple of two lists from user input?

How to take a tuple of two equal-size lists from user input at a bash terminal from within a python script? Let's assume we want the program to register the fol

How to read a single char from the console in Java (as the user types it)?

Is there an easy way to read a single char from the console as the user is typing it in Java? Is it possible? I've tried with these methods but they all wait fo

How to make new line input message by pressing shift + enter? Angular

I have a chat box with a single input field. I want to make handle new line input like Facebook's chatbox. My Chat Box: [1]: https://i.stack.imgur.com/NeG7d.png

Multiple int input in same line python [duplicate]

I want to take multiple integer inputs in the same line. I know I can take str input and then convert them into integer in the next line but i

React Native: error "Input data should be a String" when using "react-native-markdown-display""

I get this error after using React-native-markdown-display package and I don't understand why... I have only strings in my content database, so it seem's to be

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

is there an alternative to onfocusout() function?

I have the function onfocusout() that runs another function selectEntite(), inside an input like the following code : <input onfocusout="selectEntite();" ty

How to Use Dynamic Form Input Value with Editable REACT.JS?

How to Make Dynamic Editable Value REACT.JS Form? When I try to use the dynamic form input value in react.js, the dynamic value is not editable, how can I fix t

How to add aliases to an input dictionary?

Recently I started a project. My goal was it to have a script, which, once launched, could be able to control actions on the hosts computer if an instruction wa

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

Upload a empty folder with js or jquery

hello there I am building a folder upload system with js and PHP but I got an issue I'm not able to upload a folder that not contains any files I use <in

How do I read multiple integers from a line of input in python 2?

I am new to python. I searched and found out how to do it in python 3: v = [int(x) for x in input().split()] but in python 2 I get the syntax error. I need it

Why does std::getline() skip input after a formatted extraction?

I have the following piece of code that prompts the user for their cat's age and name: #include <iostream> #include <string> int main() { int a

How to Get Input from Joystick in Python?

I'm trying to get input from a joystick I have (specifically the Logitech Extreme 3D Pro) with a Python program. Unfortunately, I do not know how to do this wel

ValueError: Input 0 of layer hiddenL1 is incompatible with the layer: its rank is undefined, but the layer requires a define rank

I am trying to create a sequential keras model with custom weights. The weights come from a row in a numpy array. When running the code I get the error: Value

C++ While loop not re-assigning string value

I had created a program that counts the amount of vowels in a provided string. It counts the vowels correctly and repeats when the user provides a 'y' or 'Y'. H

C++ While loop not re-assigning string value

I had created a program that counts the amount of vowels in a provided string. It counts the vowels correctly and repeats when the user provides a 'y' or 'Y'. H

Skip over input stream in ATLAST forth

I'm trying to implement a kind of "conditional :" in ATLAST, the reasoning being I have a file that gets FLOADed multiple times to handle multiple steps of my p

Filling in input type=file

I know that prefilling of <input type = file /> tags in HTML is not allowed due to security reasons. But is there any automated way through scripts of any