43. What is matrix Flashcards

1
Q

what is a matrix? what it is useful for

A

an list with multiple arrays inside it.

machine learning, and computer processing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you acces an number in one of the lines in a matrix?

A
  1. put print
  2. write matrix
  3. put the number of the line
  4. put the order of the number you want
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is list methods?

A

len() -length of a list (human legths)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you use .insert?

A
  1. write the name
  2. write .insert
    1. add the number you want the new number to be beside
  3. add the new number
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

how do you use .extend ?

A

-adds on and extends list with a ([])

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you remove things in list? what does .pop do

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what does .remove do?

A

removes the velue of the number you put in the brackets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what does .pop do?

A

returns only one number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what does .clear do?

A

explainable,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Wha does .index() do?

A

shows you where the place holder is of the letter, or object inserted in the brcket beside it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what does “in” do in
print(‘i’ in my name is Inus’)

A

says I is true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what does .count do

A

count homw many times something is in a list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what does .reverse do?

A

reverses the basket in place
backwards list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what does .sort() do?

A

puts things in order

How well did you know this?
1
Not at all
2
3
4
5
Perfectly