file - Why do I get this output? (Python) -
numbers.txt
has 2 lines: 123 , 456
when run this:
list = open('numbers.txt').read().splitlines() print list
it gives me output:
['{\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf340', '{\fonttbl\f0\fswiss\fcharset0 arialmt;}', '{\colortbl;\red255\green255\blue255;}', '\paperw11900\paperh16840\margl1440\margr1440\vieww8860\viewh6060\viewkind0', '\deftab720', '\pard\pardeftab720\sl480\sa144\partightenfactor0', '', '\f0\fs32 \cf0 \expnd0\expndtw0\kerning0', '123\', '456}']
Comments
Post a Comment