Show
Terms in this set (35)10. Which list will be referenced by the variable list_strip after the execution of the following code? Sets with similar termsWhich list will be referenced by the variable list_strip after the execution of the following code? list_string = '03/07/2008' a. ['3', '7', '2008'] Sets with similar termsWhich list will be referenced by the variable list_strip after the execution of the following code? list_string = '03/07/2008' a. ['3', '7', '2008'] Sets with similar termsWhich list will be referenced by the variable list_strip after the execution of the following code? list_string = '03/07/2008' list_strip = list_string.split('/') ['3', '7', '2008'] Sets with similar termsWhich of the following string methods can be used to determine if a string contains only '\ n characters quizlet?Which of the following string methods can be used to determine if a string contains only '\n' characters? The right side of the '*' must be an integer.
Which method would you use to determine whether a certain substring is present in a string quizlet?Which method would you use to determine whether a certain substring is present in a string? The strip() method returns a copy of the string with all the leading whitespace characters removed but does not remove trailing whitespace characters.
Which method would you use to determine whether a substring is present in a string?The standard solution to check if a string is a substring of another string is using the String#contains() method.
What method could be used to strip specific characters from the end of a string?TrimEnd. The String. TrimEnd method removes characters from the end of a string, creating a new string object. An array of characters is passed to this method to specify the characters to be removed.
|