AC
AnkiCollab
AnkiCollab
Sign in
Explore Decks
Helpful
Join Discord
Download Add-on
Documentation
Support Us
Notes in
Level 4: Level 4.1 Data in Files & Arrays
To Subscribe, use this Key
dakota-uniform-floor-speaker-alpha-wyoming
Status
Last Update
Fields
Published
05/03/2024
A temporary reference name/number assigned to a file being opened.
Published
05/03/2024
Command to open a file.
Published
05/03/2024
Similar to while, but used when you have a collection, object, list, or function to iterate through.
Published
05/03/2024
Command to close a file.output = open(''/Users/brianspiering/Desktop/spam'', 'w')
Published
05/03/2024
Method for splitting strings into multiple variables.
Published
05/03/2024
Example of splitting a string () into 4 separate variables.beatles = ('john, paul, george, ringo')
Published
05/03/2024
Take a string split into variables: firstName and lastName.my_name = "Foo Bar"
Published
05/03/2024
A data structure that allows you to group many pieces of data together under one variable name.
Published
05/03/2024
The array index operator.
Published
05/03/2024
Creates an empty array called my_stuff
Published
05/03/2024
An array example.
Published
05/03/2024
Prints the first item in an array called my_stuff.
Published
05/03/2024
Prints the second item in an array called my_stuff.s = ['computer','phone','wallet','sock puppet']
Published
05/03/2024
Adds the text string 'goat cheese' to an array called my_stuff.my_stuff = ['socks', 'shoes']
Published
05/03/2024
Adds the variable 'cash_money' to array my_stuff while converting it to a floating point number.cash_money = 700
Published
05/03/2024
Tells you how many times a value is in an array.How many hand are in body_parts?body_parts = ['hand','hand','head','penis']How many 3s do you have?my_…
Published
05/03/2024
Adds a list of items to an array.l = [1, 2, 3]more_items = [4,5]
Published
05/03/2024
Find location of 'brie'cheeses = ['dubliner', 'brie', 'chedder']
Published
05/03/2024
Adds an item at any index location within an array.
Published
05/03/2024
Removes and returns the last array item.
Published
05/03/2024
Removes and returns the 1st array item.cheeses = ['bire', 'cheddar', 'white', 'yellow','dubliner']
Published
05/03/2024
Reverses the order of the array.my_numbers = [1,2,3,4]
Published
05/03/2024
Sorts the items in an array from low to high.['swiss', 'sharp', 'gouda', 'cheddar']
Published
05/03/2024
Sorts an array called cheeses from low to high.cheeses = ['chedder','brie','dubliner']
Published
05/03/2024
Reverses the order of items in an array called cheeses.cheeses = ['brie', 'chedder', 'dubliner']
Published
05/03/2024
Combine sort and reverse into one line of code to sort array 'cheeses' into order from highest to lowest.cheeses = ['bire', 'cheddar', 'white', 'yello…
Status
Last Update
Fields