Python Forum
Taking user input and storing that to a variable then storing that variable to a list
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Taking user input and storing that to a variable then storing that variable to a list
#7
items.append is a function, you need to use parenthesis (, not square brackets [, so
items.append( [item_number, items_name, item_price] )
Reply


Messages In This Thread
RE: Taking user input and storing that to a variable then storing that variable to a list - by zivoni - Mar-27-2017, 11:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with writing monitored data to mysql upon change of one particular variable donottrackmymetadata 3 387 Apr-18-2024, 09:55 PM
Last Post: deanhystad
  Commas issue in variable ddahlman 6 551 Apr-05-2024, 03:45 PM
Last Post: deanhystad
  Variable Explorer in spyder driesdep 1 306 Apr-02-2024, 06:50 AM
Last Post: paul18fr
  Mediapipe. Not picking up second variable stevolution2024 1 262 Mar-31-2024, 05:56 PM
Last Post: stevolution2024
Question Variable not defined even though it is CoderMerv 3 392 Mar-28-2024, 02:13 PM
Last Post: Larz60+
  optimum chess endgame with D=3 pieces doesn't give an exact moves_to_mate variable max22 1 318 Mar-21-2024, 09:31 PM
Last Post: max22
  difference between forms of input a list to function akbarza 6 1,160 Feb-21-2024, 08:02 PM
Last Post: bterwijn
  Reading and storing a line of output from pexpect child eagerissac 1 4,355 Feb-20-2024, 05:51 AM
Last Post: ayoshittu
  unbounded variable akbarza 3 567 Feb-07-2024, 03:51 PM
Last Post: deanhystad
  Variable for the value element in the index function?? Learner1 8 747 Jan-20-2024, 09:20 PM
Last Post: Learner1

Forum Jump:

User Panel Messages

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