Iterate over a string and tuple,iteratetuple,S = 'lumberj
Iterate over a string and tuple,iteratetuple,S = 'lumberj
S = 'lumberjack' T = ('and', 'I'm', 'okay') for x in S: print x, # Iterate over a stringfor x in T: print x, # Iterate over a tuple
- Create a tuple with some items and display with a for lo
- Tuple repitition Demo,tuplerepitition,print (1, 2)
- Dictionary assignment,assignment,x = {}y = xx
- Dictionary exists fetch and non-exist fetch,fetchnon-e
- Dictionary update method,dictionarymethod,#The update
- Demonstrates string concatenation and repetition,,prin
热门文章:
相关内容
- 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
- Demonstrates string concatenation and repetition,,print 'You c
- For Statements to list the string length,statementslength,a = ['cat
- String replace Demo,stringreplacedemo,print 'tea f
- Degenerate slice indices,degenerateindices,#an index th
- Negative Indices numbers: start counting from the right,indicescoun
评论关闭