Python Forum
Multiple inputs on the same line (beginner)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple inputs on the same line (beginner)
#8
day, month, year = input().split() # input as string 
day, month, year = map(int, input().split()) # input as integer
birthday = list(map(int, input().split())) # input as a list
Pedroski55 likes this post
Reply


Messages In This Thread
RE: Multiple inputs on the same line (beginner) - by naughtyCat - Sep-03-2021, 04:32 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Multiple variable inputs when only one is called for ChrisDall 2 515 Oct-20-2023, 07:43 PM
Last Post: deanhystad
  Trying to loop through code to plot seaborn line plots across multiple subplots eyavuz21 0 1,719 Dec-05-2022, 10:46 AM
Last Post: eyavuz21
  Generate Multiple sql Files With csv inputs vkomarag 13 4,301 Aug-20-2021, 07:03 PM
Last Post: vkomarag
  beginner text formatting single line to column jafrost 4 3,251 Apr-28-2021, 07:03 PM
Last Post: jafrost
  Multiple Line Chart Plotting moto17 1 2,524 Jan-20-2021, 01:38 PM
Last Post: wostan
  How to print string multiple times on new line ace19887 7 5,840 Sep-30-2020, 02:53 PM
Last Post: buran
  Taking Multiple Command Line Argument Input bwdu 6 4,095 Mar-29-2020, 05:52 PM
Last Post: buran
  Help with applying this instrument monitoring code to multiple inputs. Kid_Meier 1 2,121 Mar-04-2020, 12:01 PM
Last Post: Kid_Meier
  Problem with accepting multiple string inputs Ryan_Todd 5 3,001 Jan-22-2020, 06:12 PM
Last Post: buran
  Multiple Line Input helenaxoxo 4 2,968 Dec-02-2019, 11:06 PM
Last Post: helenaxoxo

Forum Jump:

User Panel Messages

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