Uploaded by nathan.campbell00013

Python 101

advertisement
Python 101
Print = “x“
Phrase = “x“
/n
 next line
Phrase.upper (x) or phrase.lower (x) strings within a print
.isupper or .islower  true or false test for upper/lowercase
Len (x) counts length of a string
Phrase [x] eg. 0,1,2…n  picks the 1st, 2nd , 3rd character
Phrase.index (x)  selects a value by passing a parameter
Phrase.replace ( x,y )  used to replace x with y
Related documents
Download