Skip to content

How Do I Get External Libraries to Work? #1914

Answered by laurensvalk
sofalights asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you can make lists or tuples, and even a Matrix. You can do basic Matrix operations like addition or multiplication but not inversion/regression etc.

In your case, if you just want to store values like that, you don't need the arrays. You can just make lists of lists:

sensor_data =[
    [0, 0, 0, 0, 0, 0],        
    [140, 100, 100, 0, 0, 0],  
    [0, 0, 0, 140, 100, 100],  
    [140, 100, 100, 140, 100, 100],  
    [250, 10, 90, 250, 10, 90],      
    [120, 10, 100, 120, 10, 100],    
    [0, 0, 0, 180, 100, 100],  
    [180, 100, 100, 0, 0, 0],  
]

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sofalights
Comment options

@laurensvalk
Comment options

Answer selected by sofalights
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants