CS 1110 Study Guide - Midterm Guide: Pycharm, Gnu Readline, Substring

78 views5 pages

Document Summary

Sean gatewood exam 2 review videos: boolean values, print(true) returns true value, print(not(false) returns true, true and true or false >> = true. to in applesauce return false in returns a boolean value: you cannot concatenate an int and a str with , string. lower() makes all lowercase letters in the string, and hello. upper() makes it uppercase. strip() will remove leading and trailing whitespace: you can strip any letters on the outside of the string by . strip(letter)\ . split() by default splits up a string by spaces into a list. You can split by commas if you put (",") as an argument in delimiter. find(substring, optional index location) returns the index value of the first letter of where that is, and can also start to find starting at a certain index location. If you don"t find the substring in your string, -1 is returned (unlike . index(), which returns the index and an error if the argument is not found.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents