Apr-12-2020, 07:56 PM
python3.7.0 modul documentation
arbitrary argument list
arbitrary argument list
| help mising 1 required posisitional rgument |
| Apr-12-2020, 07:56 PM python3.7.0 modul documentation arbitrary argument list Apr-12-2020, 08:00 PM I would suggest that you go over that material again. In your code you have a positional argument file. Then in the function body you "expect" it to have write method in order your code to work. However you pass as first argument "Hello" which is str and does not have write method. If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein How to Ask Questions The Smart Way: link and another link Create MCV example Debug small programs |
| |