¡GoConqr estrena diseño! Cuéntanos qué te parece.

Mapa mental

CIS4930 Assignment #2

Sara Loving Inglés

Contenido del mapa

CIS4930 Assignment #2

  1. Lists

    • [..., ..., ...]
    • Ordered
    • Changeable
    • Allow duplicates
    • Can have elements with different data types
    • When adding an element, it is placed at the end
    • Can remove elements or pop the index
  2. Tuples

    • (..., ..., ...)
    • Used to store multiple items in a single variable
    • Ordered
    • Unchangeable
    • Allow duplicates
    • Can return a subtuple using tuplename[#:#]
  3. Sets

    • {..., ..., ...}
    • Unordered
    • Unchangeable
    • Reject duplicates
    • Can have elements with different data types
    • Can use a loop to access its items
    • Can check if an element exists in a set using print(x)
    • Can add elements to a set using .add(...)
    • Can merge two sets using .update(...)
  4. Dictionaries

    • Used to store data in key:value
    • Powerful in describing elements/items
    • Can be any data type
    • dictionary["element"] = "name"
      • Adds an element
    • Format
      • {key1: value1, ..., keyn: valuen}

Información

Descripción
Mapa Mental sobre CIS4930 Assignment #2, creado por Sara Loving el 31/01/2021.
Creado por
Sara Loving
Visitas
1
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?