Questions and discussion for this lecture live here. Fire away by hitting Reply below ![]()
Hi Dr. Sean,
Thank you for your explanation in this lecture.
I have a quick question in the phyton scripting.
I can see in the calculateKg you write MemberNo in the bracket, but
I cannot see whether you have defined it, and the code is working.
Can you clarify this?
Regards,
Avandi
Hi @Avandi_Novena,
The following line,
def calculateKg(memberNo):
is a function definition. In this code memberNo, represents the number that will be passed as an argument to the function when it is called, for example…
[K11, K12, K21,K22] = calculateKg(n+1)
So, when the function is called, n+1 is passed in as the memberNo.
I hope that helps to clarify - let me know if you still have questions.
Seán
Hi Dr. Sean,
Thank you for the reply. I understood with your explanation. Thanks.
Regards,
Avandi