Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Python
Posted by: Cammy And
Added: Jun 21, 2020 4:03 AM
Views: 21
Tags: no tags
  1. with open('.txt', 'r') as f:
  2.     _list = [line.rstrip() for line in f.readlines()]