Open the file

Report a typo

To complete this task, follow the instructions.

  1. Create a new file "stars.txt".
  2. Open it for writing as a text.
  3. Use the UTF-16 encoding.
  4. Name the variable test_file.
  5. Don't forget to close the file!
Write a program in Python 3
# write your code here
___

Create a free account to access the full topic