Delete an element from a list,deleteelement,scores = ['1
Delete an element from a list,deleteelement,scores = ['1
scores = ['1','2','3']# delete a scorescore = int(raw_input('Delete which score?: '))if score in scores: scores.remove(score)else: print score, 'isn't in the high scores list.'# list high-score tablefor score in scores: print score
- List repetition,listrepetition,print ['Ni!'
- A list of lists: nested list,listsnested,words = 'The
- Use Print to display tuples,displaytuples,chest = ('go
- in function for a string and a tuple,functiontuple,S,
- Iterate over a string and tuple,iteratetuple,S = 'lumb
- Create a tuple with some items and display with a for lo
热门文章:
相关内容
- List repetition,listrepetition,print ['Ni!'
- A list of lists: nested list,listsnested,words = 'The
- Use Print to display tuples,displaytuples,chest = ('go
- in function for a string and a tuple,functiontuple,S, T = 'lumb
- Iterate over a string and tuple,iteratetuple,S = 'lumberj
- Create a tuple with some items and display with a for loop,tupleite
- Tuple repitition Demo,tuplerepitition,print (1, 2)
- Dictionary assignment,assignment,x = {}y = xx
- Dictionary exists fetch and non-exist fetch,fetchnon-exist,Matrix =
- Dictionary update method,dictionarymethod,#The update
评论关闭