Message342066
Robert, when posting to this tracker by email, please remove the quote of the previous post. It duplicates the post itself.
I said exactly what I said, which explained why marking the issue for IDLE was a mistake. (The same error is a weekly occurrence, by beginners, on stackoverflow.com.)
That aside, you are not passing values through or between modules. You are passing arguments to a function, which is an object separate from both modules.
I ran your code and got the expected error-free output:
Question 5
['i', 't'] s -1
Steven explained the bug in your code which makes the last print act different from what you probably expect. Reread what he wrote until you understand. If I do what he suggested you must have done, I get the error you got. |
|
Date |
User |
Action |
Args |
2019-05-10 09:42:52 | terry.reedy | set | recipients:
+ terry.reedy, steven.daprano, SilentGhost, coldy028 |
2019-05-10 09:42:52 | terry.reedy | set | messageid: <1557481372.32.0.160546126162.issue36872@roundup.psfhosted.org> |
2019-05-10 09:42:52 | terry.reedy | link | issue36872 messages |
2019-05-10 09:42:52 | terry.reedy | create | |
|