Skip to content Skip to sidebar Skip to footer
Showing posts with the label Input

I'd Like To Remove Multiple Elements From A List By User Input

I would like to create in python a script that remove multiple object, inserted by the user, from a… Read more I'd Like To Remove Multiple Elements From A List By User Input

Why Python Does Not See All The Rows In A File?

I count number of rows (lines) in a file using Python in the following method: n = 0 for line in fi… Read more Why Python Does Not See All The Rows In A File?

Python File Format For Email Classification With Svm-light

I am working with email subject, so I have 20 emails i want to classify, and a file with 20 lines -… Read more Python File Format For Email Classification With Svm-light

Unexpected Eof While Parsing In Python Random Sentence Generator

I am running Python 2.7.12 with no extensions. This is my code, and I am getting an Unexpected EOF … Read more Unexpected Eof While Parsing In Python Random Sentence Generator

Nested List Doesn't Work Properly

import re def get_number(element): re_number = re.match('(\d+\.?\d*)', element) if… Read more Nested List Doesn't Work Properly

Input Data Not Defined

I am writing some code and need the user to input a file for use in the program: file=input('in… Read more Input Data Not Defined

Calling A Function Recursively For User Input

I'm trying to make a rock-paper-scissors game, and am trying to verify the input. def player1()… Read more Calling A Function Recursively For User Input

Building A Built-in Text Field For Turtle, While Statement Doesn't Work

I have built a text field module that has one problem: why does Python IDLE not work for while...br… Read more Building A Built-in Text Field For Turtle, While Statement Doesn't Work

Reading Input From A File In Python 3.x

Say you are reading input from a file structured like so P3 400 200 255 255 255 255 255 0 0 255 0 0… Read more Reading Input From A File In Python 3.x

Form Input-box Not Displaying

I'm trying to display a simple form input-text box with Django. I'm am deploying on Amazon … Read more Form Input-box Not Displaying

How Do I Gather User Numerical Input Into A List In Python?

I'm new to Python and am trying to make a simple program to calculate mean median and mode from… Read more How Do I Gather User Numerical Input Into A List In Python?

Reading Stdout From Xinput Test In Python

I am trying to stream the output of xinput into my python program, however my program just waits an… Read more Reading Stdout From Xinput Test In Python

Calling/selecting Variables (float Valued) With User Input In Python

I've been working on a computational physics project (plotting related rates of chemical reacta… Read more Calling/selecting Variables (float Valued) With User Input In Python

Python: Input Function Not Working As Expected

Say that the SECRET_NUMBER = 77. I want the function to keep prompting the user until the secret nu… Read more Python: Input Function Not Working As Expected

Python Stdin User Input Issue

Issue Conflict with STDIN when executing these two functions. What would cause the second function … Read more Python Stdin User Input Issue

Curses Print Characters As Typed

Using python I am wanting to have the characters printed out as i type, this is easy in java scrip… Read more Curses Print Characters As Typed

Do Action While Raw_input Is Empty

I'd like to do some actions while waiting for a user input: I was thinking of: var = raw_input(… Read more Do Action While Raw_input Is Empty

Python Form: Using Tkinter --> Run Script Based On Checked Checkboxes In Gui

I have created the following checkbox popup in Python 3.5 using tkinter (see image) with the follow… Read more Python Form: Using Tkinter --> Run Script Based On Checked Checkboxes In Gui

Shell Script Taking Input From Python Program

I have a shell script which runs a python program which has its own parameters: #!/bin/bash python … Read more Shell Script Taking Input From Python Program

Pygame: Graphical Input + Text Input

In Pygame, how can I get graphical input(e.g. clicking exit button) and also get input from the a t… Read more Pygame: Graphical Input + Text Input