This Python script prints 'ola' and then opens a file called 'arquivo.txt' for writing. It then writes the numbers from 0 to 9, each on their own line, by converting each number to a string and writing it plus a newline character to the file. Finally, it closes the file.
This Python script prints 'ola' and then opens a file called 'arquivo.txt' for writing. It then writes the numbers from 0 to 9, each on their own line, by converting each number to a string and writing it plus a newline character to the file. Finally, it closes the file.
This Python script prints 'ola' and then opens a file called 'arquivo.txt' for writing. It then writes the numbers from 0 to 9, each on their own line, by converting each number to a string and writing it plus a newline character to the file. Finally, it closes the file.