43. What is matrix Flashcards
what is a matrix? what it is useful for
an list with multiple arrays inside it.
machine learning, and computer processing
How do you acces an number in one of the lines in a matrix?
- put print
- write matrix
- put the number of the line
- put the order of the number you want
What is list methods?
len() -length of a list (human legths)
How do you use .insert?
- write the name
- write .insert
- add the number you want the new number to be beside
- add the new number
how do you use .extend ?
-adds on and extends list with a ([])
How do you remove things in list? what does .pop do
basket.pop
meaning basket is the name, pop takes a way the last item of list
-also put the number of where it is and removes it
what does .remove do?
removes the velue of the number you put in the brackets
what does .pop do?
returns only one number
what does .clear do?
explainable,
Wha does .index() do?
shows you where the place holder is of the letter, or object inserted in the brcket beside it
what does “in” do in
print(‘i’ in my name is Inus’)
says I is true
what does .count do
count homw many times something is in a list
what does .reverse do?
reverses the basket in place
backwards list
what does .sort() do?
puts things in order