Question: In python, what i want is in if statement, to check the first value of the first 2 dimensional array which is self.elementtable and the

In python, what i want is in if statement, to check the first value of the first 2 dimensional array which is self.elementtable and the 1 dimensional array which is self.node but the error is argument of type int is not iterable  In python, what i want is in if statement, to check

15 16 randnum-random. randint (0,1) print(i,j, "this is i j") Create.py plotgroundstructure.py test1.py if randnum-1: 18 19 20 21 print(i,j, "this i j1" self.elenenttable.append (Iself.node[i], self.node [j11) 111 External Libraries else: print (i,j, "thisi j) print(self.elementtable) print(self.node [e]) print(self.elementtable (e] (e]) 23 24 25 26 27 28 29 if self.elementtable[08) [e] not in self.node (0]: print("not ok") 31 test() 32 34 35 init) if self.elementtable[01[0] not .. test testi x-in testi Create Create x Createx IIe, 111 Traceback (most recent call last): File" , line 31, in snodule> test) File Users/junior/Pycha TypeError: argument of type int' is not iterable ", line 27, in-init- if self.elementtable [el (8) not in self.node [0]: Process finished with exit code 1 t Waiting for ss detach deternine the of constrained nodes (inc luding appLied force) tion, 1)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!