strings,list,tuples function

    Cards (38)

    • +
      concatenation
    • *
      repetition
    • <seq>[]
      indexing
    • <seq>[:] - slicing
    • len(<seq>) - length
    • for <var> in <seq> - iteration through characters/items
    • <char/item> in <seq> - to determine if a specified item/char
      is present in a sequence
    • capitalize() - Converts the first character to upper case
    • center(<par>) - Returns a centered string
    • count(<par>) - Returns the number of times a specified
      value occurs in a string.
    • endswith(<par>) - Returns true if the string ends with the specified value
    • join(<par>)-Joins the elements of an iterable to the end of the string
    • ljust(<par>)-Returns a left justified version of the string
    • lower()/casefold()-Converts string into lower case
    • lstrip()-Returns a left trim version of the string
    • find(<par>)/, index(<par>)-Searches the string for a specified value and returns the position of where it was first found
    • replace(<par>,<par>)-Returns a string where a specified value
      is replaced with a specified value
    • rfind(<par>)/rindex(<par>)- Searches the string for a specified value and returns the last position of where it was found
    • rjust(<par>)- Returns a right justified version of the string
    • rstrip()- Returns a right trim version of the string
    • split()-Splits into a list of substrings.
    • startswith(<par>)
      Returns true if the string starts with the specified value
    • strip()- Returns a trimmed version of the string
    • title()- Converts the first character of each word to upper case
    • upper()- Converts a string into upper case
    • append()- Adds an element at the end of the list
    • clear()- Removes all the elements from the list
    • copy()- Returns a copy of the list
    • count(<par>) Returns the number of elements with the specified value
    • extend()- Add the elements of a list (or any iterable),
      to the end of the current list
    • index()- Returns the index of the first element with the specified value
    • insert()- Adds an element at the specified position
    • pop()- Removes the element at the specified position
    • remove()- Removes the item with the specified value
    • reverse()- Reverses the order of the list
    • sort()- Sorts the list
    • count()- Returns the number of times a specified value occurs in a tuple
    • index() Searches the tuple for a specified value
      and returns the position of where it was found