Append element to a list : List Append : List PYTHON examples


PYTHON examples » List » List Append »

 

Append element to a list


Append element to a list

scores = ["1","2","3"]

# add a score
score = int(raw_input("What score did you get?: "))
scores.append(score)

# list high-score table
for score in scores:
       print score

           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo List
» List Append