GoConqr has a new look! Let us know what you think.

Mind map

CIS4930 Assignment #2

Sara Loving English

Map content

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}

Information

Description
Mind Map on CIS4930 Assignment #2, created by Sara Loving on 31/01/2021.
Created by
Sara Loving
Views
1
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?