Python Forum
Input while interation in a list
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Input while interation in a list
#3
How do I code a list with which I input the variable several times? Example:

1 a=float(input("Insert a:")
2 x=[a,a,a]
Reply


Messages In This Thread
Input while interation in a list - by doug2019 - Oct-06-2019, 08:02 AM
RE: Input while interation in a list - by buran - Oct-06-2019, 05:21 PM
RE: Input while interation in a list - by doug2019 - Oct-06-2019, 06:34 PM
RE: Input while interation in a list - by buran - Oct-06-2019, 06:44 PM
Input values ​​of a variable multiple times in a list - by doug2019 - Oct-06-2019, 05:04 PM
List and variable - by doug2019 - Oct-06-2019, 06:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  User input/picking from a list AnunnakiKungFu 2 551 Feb-27-2021, 12:10 AM
Last Post: BashBedlam
  Undo interation to make a single list? DustinKlent 2 511 Nov-29-2020, 03:41 AM
Last Post: DustinKlent
  user input for multi-dimentional list without a prior iteration using input() Parshaw 6 858 Sep-22-2020, 04:46 PM
Last Post: Parshaw
  taking input doesnt print as list bntayfur 2 685 Jun-04-2020, 02:48 AM
Last Post: bntayfur
  Help with calling list from user input farispython 5 1,091 Nov-03-2019, 03:13 PM
Last Post: Gribouillis
  with input remove a string from the list konsular 3 966 Oct-12-2019, 09:25 AM
Last Post: konsular
  Creating csv header from user-input list dvanommen 2 1,051 Aug-26-2019, 08:51 PM
Last Post: dvanommen
  Forcing input from pre-defined list. scotty501 11 2,406 Jun-18-2019, 01:49 PM
Last Post: scotty501
  Need help with reading input from stdin into array list Annie123 2 2,824 Mar-24-2019, 01:19 PM
Last Post: Annie123
  User input - list Ondra 3 1,272 Feb-15-2019, 11:29 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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