Python Forum
Trying to prompt user for 2 inputs on one line
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to prompt user for 2 inputs on one line
#2
input returns a single string, so it's up to you how you parse that into the two values. You could, for example ask them to enter the values separated by a space and then split the string on the space to get two strings that you could then do further processing on.
Reply


Messages In This Thread
RE: Trying to prompt user for 2 inputs on one line - by ndc85430 - Sep-15-2019, 02:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Lightbulb Multiple inputs on the same line (beginner) dementshuk 9 2,910 Sep-03-2021, 02:21 PM
Last Post: dementshuk
  Automatic user/password entry on prompt by bash script PBOX_XS4_2001 3 2,870 May-18-2021, 06:42 PM
Last Post: Skaperen
  How to write a response if a user inputs a string horuscope42 3 2,280 Apr-29-2020, 03:39 PM
Last Post: deanhystad
  Perminantly saving user inputs + being able to retrieve it ThatOneGuyNoOneKnowsCodes 1 1,992 Oct-23-2019, 11:28 PM
Last Post: DT2000
  user inputs in constructing a dictionary Exsul 3 3,756 Apr-10-2019, 12:25 PM
Last Post: ichabod801
  unit testing a method that asks two user inputs() in console gebel 0 2,181 Apr-03-2019, 07:59 PM
Last Post: gebel
  question regarding user Inputs cibb 10 7,409 Apr-04-2017, 03:34 AM
Last Post: alicarlos13
  code that takes inputs for user name amounts etc and then sends custom message shaumyabrata 5 5,384 Feb-12-2017, 11:37 AM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020