Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

input

Non-blocking console input?

August 21, 2022 by Magenaut

I am trying to make a simple IRC client in Python (as kind of a project while I learn the language).

Categories Python, Q&A Tags input, python, windows Leave a comment

How to read multiple lines of raw input?

August 21, 2022 by Magenaut

I want to create a Python program which takes in multiple lines of user input. For example:

Categories Python, Q&A Tags input, python, user-input Leave a comment

Time-Limited Input?

August 21, 2022 by Magenaut

What I would like to be able to do is ask a user a question using input. For example: print('some scenario') prompt = input("You have 10 seconds to choose the correct answer…n") and then if the time elapses print something like print('Sorry, times up.') Any help pointing me in the right direction would be greatly … Read more

Categories Python, Q&A Tags input, python, python-3.x, python-multithreading, timer Leave a comment

How to get multiline input from user

August 21, 2022 by Magenaut

I want to write a program that gets multiple line input and work with it line by line. Why there is no function like raw_input in Python 3? input does not allow user to put lines separated by newline (Enter), it prints back only the first line. Can it be stored in variable or even … Read more

Categories Python, Q&A Tags input, multiline, python Leave a comment

Show default value for editing on Python input possible?

August 20, 2022 by Magenaut

Is it possible for python to accept input like this:

Categories Python, Q&A Tags input, python Leave a comment

print statement inside of input returns with a “none”

August 16, 2022 by Magenaut

I am working on a little program and I want to use:

Categories Python, Q&A Tags input, python, python-3.x Leave a comment

Finding the Values of the Arrow Keys in Python: Why are they triples?

August 15, 2022 by Magenaut

I am trying to find the values that my local system assigns to the arrow keys, specifically in Python. I am using the following script to do this:

Categories Python, Q&A Tags ascii, control-characters, input, non-ascii-characters, python Leave a comment

How to test a function with input call?

August 15, 2022 by Magenaut

I have a console program written in Python. It asks the user questions using the command:

Categories Python, Q&A Tags input, pytest, python, testing, unit-testing Leave a comment

How to input matrix (2D list) in Python?

August 14, 2022 by Magenaut

I tried to create this code to input an m by n matrix. I intended to input [[1,2,3],[4,5,6]] but the code yields [[4,5,6],[4,5,6]. Same things happen when I input other m by n matrix, the code yields an m by n matrix whose rows are identical.

Categories Python, Q&A Tags input, list, matrix, python Leave a comment

Command-line input causes SyntaxError

August 14, 2022 by Magenaut

I have a simple Python question that I’m having brain freeze on. This code snippet works. But when I substitue ā€œ258 494-3929ā€ with phoneNumber, I get the following error below:

Categories Python, Q&A Tags command-line, input, python, python-2.x Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress