Example
String Methods - upper, lower, strip
Useful methods for working with text: changing case, removing whitespace.
5 results
Example
Useful methods for working with text: changing case, removing whitespace.
Quiz
…indexes and reversing a string Case methods such as upper() and title() , and why a method does not change the original string Checking text with in , == and < Searching and splitting with find()…
Article Python Fundamentals
…a dash. Hint: look up string slicing ( name[:3] ) and the .upper() method. Stretch goal: use the random module to add two random digits at the end. 5. Go / no-go check Write is_go_for_launch(fuel…
Challenge
…reading above its range, one below, and one exactly at the upper limit, which is allowed and must give None . Keep the passed line at the end. The hidden tests now plant all three bugs, the third…
Challenge
…not on the approved list Strip the spaces and make it upper case, then use if with in . For " pl-117 " it prints the first line.