Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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)
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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started