Demonstrates the for loop with a string,demonstratesloop,word = raw_i
Demonstrates the for loop with a string,demonstratesloop,word = raw_i
word = raw_input('Enter a word: ')print '\nHere's each letter in your word:'for letter in word: print letter
- String method: to upper case,methodupper,quote = 'Pyt
- Escape Codes: \b, \t, \n, \a, \r,escapecodes,s = 'e:\\
- Escape characters: \n and \t,escapecharacters,s = 'a\n
- Find substring in a string,substringstring,S = 'xxxxSP
- Indices may be negative numbers, to start counting from
- Joining strings,joiningstrings,list1 = [ '
热门文章:
相关内容
- String method: to upper case,methodupper,quote = 'Pyt
- Escape Codes: \b, \t, \n, \a, \r,escapecodes,s = 'e:\\Beg
- Escape characters: \n and \t,escapecharacters,s = 'a\nb\tc
- Find substring in a string,substringstring,S = 'xxxxSPA
- Indices may be negative numbers, to start counting from the right. Fo
- Joining strings,joiningstrings,list1 = [ '
- Splitting a String,splittingstring,li = ['serve
- Output and get length of a string with special characters,outputcha
- Use r to define a string and return its length,definelength,path =
- String repitition demo,stringrepitition,print 'Pie'
评论关闭