0 оценок0% нашли этот документ полезным (0 голосов)
4 просмотров2 страницы
This Python code defines a list called nums with values 1, 2, 3. It appends 4 to nums and prints the new list. It prints the sum of nums and a new list, and prints nums multiplied by 3. It then opens a text file, reads the contents and prints it, and closes the file.
This Python code defines a list called nums with values 1, 2, 3. It appends 4 to nums and prints the new list. It prints the sum of nums and a new list, and prints nums multiplied by 3. It then opens a text file, reads the contents and prints it, and closes the file.
This Python code defines a list called nums with values 1, 2, 3. It appends 4 to nums and prints the new list. It prints the sum of nums and a new list, and prints nums multiplied by 3. It then opens a text file, reads the contents and prints it, and closes the file.