# Revision history [back]

### Counting number of trues in a 1000 line answer

for y in range (1000): F=matrix([[randint(0,1) for i in range(1,11)] for j in range(1,11)]) F.echelon_form()==identity_matrix(10)

I need help with this formula! We are supposed to find the number of outputted Trues in this statement. Either a percent answer or just the number true out of 1000 would be awesome!

I'm not very well versed in this programming language and any help with a description would be great!!

 2 No.2 Revision parzan 967 ●5 ●14 ●35

### Counting number of trues in a 1000 line answer

for y in range (1000):
F=matrix([[randint(0,1) for i in range(1,11)] for j in range(1,11)])
F.echelon_form()==identity_matrix(10)F.echelon_form()==identity_matrix(10)


I need help with this formula! We are supposed to find the number of outputted Trues in this statement. Either a percent answer or just the number true out of 1000 would be awesome!

I'm not very well versed in this programming language and any help with a description would be great!!

 3 retagged FrédéricC 3885 ●3 ●36 ●77

### Counting number of trues in a 1000 line answer

for y in range (1000):
F=matrix([[randint(0,1) for i in range(1,11)] for j in range(1,11)])
F.echelon_form()==identity_matrix(10)


I need help with this formula! We are supposed to find the number of outputted Trues in this statement. Either a percent answer or just the number true out of 1000 would be awesome!

I'm not very well versed in this programming language and any help with a description would be great!!