Assume that ‘example.txt’ does not exist in the local disk….
Assume that ‘example.txt’ does not exist in the local disk. Consider the following code: a_list = [1,2,3] file_obj = open(‘example.txt’, ‘w’) for num in a_list: print(num, end = ‘ ‘) print(num, file=file_obj, end=’ ‘)file_obj.close() What is the screen output after running this code?
Read Details