GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Karteikarten

Python Flash Cards

Ronnie Mosley Englisch 75 Karten

Karten in diesem Stapel (75)

  1. 1(1, 2, 3, 4, 5)Tuples
    A collection of ordered items
    Mutable
    Allows Duplicates
  2. 2{'A', 'B', 'C', 'D', 'E',}Set
    An unordered / unindexed collection
    Mutable
    Does not allow duplicates
  3. 3[1, 2, 3, 4, 5]List
    An ordered collection
    Mutable
    Allows duplicates
  4. 4append()Adds an element at the end of a list
    List
  5. 5clear()Removes all items from a list
    List, Dictionary, Set
  6. 6copy()returns a copy of a list
    List, Dictionary, Set
  7. 7count()returns the number of elements of a specified value
    List, Tuples, Strings
  8. 8extend()Adds the elements of an iterable to the end of the current iterable
    List
  9. 9index()Returns the index of the first element with a specified value
    List, Tuple, String
  10. 10insert()Adds an element at the specified position
    List
  11. 11pop()Removes the element at the specified position
    List, Dictionary, Set
  12. 12remove()Removes the first item with the specified index
    List, Set
  13. 13reverse()Reverse the order of a list
    List
  14. 14sort()Sorts the list
    List
  15. 15{1: 'A', 2: 'B', 3: 'C'}Dictionary
    An indexed collection that is not ordered
    Mutable
    Does not allow duplicates
  16. 16fromkeys()Returns a dictionary with the specified keys and values
    Dictionary
  17. 17get()Returns the value of the specified key
    Dictionary
  18. 18items()Returns a list containing the a tuple for each key value pair
    Dictionary
  19. 19keys()Returns a list containing the dictionary's keys
    Dictionary
  20. 20popitem()Removes the last inserted key-value pair
    Dictionary
  21. 21setdefault()Returns the value of the specified key. If the key does not exist: insert the key, with the specified value
    Dictionary
  22. 22update()Updates the dictionary with a specified key-value pair
    Dictionary
  23. 23valuesReturns a list of all the values in the dictionary
    Dictionary
  24. 24add()Adds an element to a set
  25. 25difference()Returns a set containing the difference between 2 or more sets
    Sets
  26. 26differences_update()Removes the items in this set that are also included in another, specified set
    Sets
  27. 27discard()Removes the specified item
    Sets
  28. 28intersection()Returns a set that is the intersection of two other sets
    Sets
  29. 29isdisjoint()Returns True if two sets have an intersection
    Sets
  30. 30issubset()Returns True if another specified sets contains the current set
    Set
  31. 31issuperset()Returns True if the current set contains another specified set
  32. 32symmetric_difference()Returns a set with the symmetric differences of two sets
    Set
  33. 33symmetric_difference_update()Insert symmetric differences from this set and another
    Set
  34. 34union()Returns a set containing the union of two sets
    Set
  35. 35StringArrays of bytes representing unicode
    Mutable
    Doubles allowed
  36. 36capitalize()Converts the first character to upper case
    String
  37. 37casefold()Converts string into lower case
  38. 38center()Returns a centered string
  39. 39encode()Returns an encoded version of the string
  40. 40endswith()Returns true if the string ends with the specified value
  41. 41expandtabs()Sets the size of the string
  42. 42find()Searches the string for a specified value and returns the position of where it was found
  43. 43format()Formats specified values in a string
  44. 44format_map()Formats specified values in a string
  45. 45isalnum()Returns True if all characters in the string are alphanumeric
  46. 46isalpha()Returns True if all characters in the string are in the alphabet
  47. 47isdecimal()Returns True if all characters in the string are decimals
  48. 48isdigit()Returns True if all characters in the string are digits
  49. 49isidentifier()Returns True if the string is an identifier
  50. 50islower()Returns True if all characters in the string are lower case
  51. 51isnumeric()Returns True if all characters in the string are numeric
  52. 52isprintable()Returns True if all characters in the string are printable
  53. 53isspace()Returns True if all characters in the string are whitespace
  54. 54istitle()Returns True if the string follows the rules of a title
  55. 55isupper()Returns True if all characters in the string are upper case
  56. 56join()Joins the elements of an iterable to the end of the string
  57. 57ljust()Returns a left justified
  58. 58lower()Converts a string into a lower case
  59. 59lstrip()Returns a left trim version of the string
  60. 60maketrans()Returns a translation table to be used in translations
  61. 61partition()Returns a tuple where the string is parted into three parts
  62. 62replace()Returns a string where a specified value is replaced with a specified value
  63. 63rfind()Searches the string for a specified value and returns the last position of where it was found
  64. 64rindex()Searches the string for a specified value and returns the last position of where it was found
  65. 65rpartition()Returns a tuple where the string is parted into three parts
  66. 66rsplit()Returns a right trim version of the string
  67. 67rstrip()Returns a right trim version of the string
  68. 68split()Splits the string at the specified separator, and returns a list
  69. 69splitlines()Splits the string at line breaks and returns a list
  70. 70startswith()Returns true if a string starts with the specified value
  71. 71swapcase()Swaps cases, lower case becomes upper case and vice versa
  72. 72title()Converts the first character of each word to upper case
  73. 73translate()Returns a s translated string
  74. 74upper()Converts a string into a upper case
  75. 75zfill()Fills the string with a specified number of 0 values at the beginning

Informationen

Beschreibung
A collection of python terms, sorting algos, searching algos, trees, and graphs
Erstellt von
Ronnie Mosley
Aufrufe
10
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck