Python problems in Yade 2021.01a
In the name of god
Hi every one.
I encountered a problem in my compiled YADE 2021.01a. i wrote a simple code to be run but i received an strange error:
#######
In [1]: b=[1,2,
In [2]: for kk in c:
...: a=[x/max(kk) for x in kk]
-------
NameError Traceback (most recent call last)
~/YadeGit/
1 for kk in c:
----> 2 a=[x/max(kk) for x in kk]
3
~/YadeGit/
1 for kk in c:
----> 2 a=[x/max(kk) for x in kk]
3
NameError: name 'kk' is not defined
#######
I checked the code for both python 2 and 3 and there was no problem.
Any help?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask mohsen for more information if necessary.