'What does this period change in the line of code? [closed]

What does this period change in the command line? I defined "list" as a variable, but why can't I just use the "write" command? [1]: https://i.stack.imgur.com/JpRPz.png



Solution 1:[1]

well i am unsure of what you are exactly asking but the period/comma just allows you to add the edit permission of the file. and you can just use the .write() command because the file hasn't been defined

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jai Sloper