Answered step by step
Verified Expert Solution
Link Copied!

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 image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions

Question

Discuss the six most common reasons firms pursue growth.

Answered: 1 week ago