methods

Cards (12)

  • String Methods
    A) to upper case
    B) centered
    C) number of times
    D) true
    E) position
    F) joins
    G) left justified
    H) lower case
    I) left trim version
  • String Methods
    A) capitalize
    B) center
    C) count
    D) endswith
    E) find/index
    F) join
    G) ljust
    H) casefold
    I) lstrip
  • ASCII (American Standard Code for Information Interchange) - one of the
    important industry standard encoding that is being used in our computer systems today.
  • ASCII uses the numbers 0 through 127 to represent the characters typically
    found on an (American) computer keyboard, as well as certain special values known as control codes that are used to coordinate the sending and receiving of information.
  • Unicode is a much larger standard that aims to include the characters of nearly all written languages.
    It uses the same codes as ASCII for the 127 characters originally defined there but it includes many more exotic characters as well.
  • String Representation

    ord function
    • This function has this form ”ord(<character>)”. It returns the numeric code of a single character string.
  • String Representation

    chr function
    • This function has this form ”chr(<numeric value>)”. It returns the character that is represented by the numeric value.
  • List methods
    A) adds
    B) removes
    C) copy
    D) number of elements
    E) add the elements
    F) end
    G) index
    H) specified position
    I) element
    J) specified value
    K) reverses
    L) list
  • List Methods
    A) replace
    B) rfind
    C) rindex
    D) rjust
    E) rstrip
    F) split
    G) startswith
    H) strip
    I) title
    J) upper
  • Tuples Methods
    A) count
    B) position
  • Caesar Cipher - a simple substitution cipher based on the idea of shifting each letter of the plaintext message a fixed number (called the key) of positions in the alphabet. For example, if the key value is 2, the word ”sourpuss” would be encoded as ”uqwtrwuu.”
  • Affine Cryptosystem - a system in which a number from 0-25 is assigned to every letter of the alphabet.
    Each letter is encoded into the corresponding number x and then into the letter which numerical encoding is ax + b.