def open_file(fish): fp = open(txtt.txt, 'r') fp = [line.rstrip('\n') for line in fp] return fp open_file(fish) fp = open file(fish) def read_file(fp): r = [] l = [] n = 10 for i in range(n): r.append(l)I know how to add the number in the lists l but not how to split them.
List of lists
List of lists
|
|
Messages In This Thread |
List of lists - by MarkLogan - Feb-28-2018, 09:34 PM
RE: List of lists - by micseydel - Feb-28-2018, 10:06 PM
RE: List of lists - by MarkLogan - Feb-28-2018, 10:18 PM
RE: List of lists - by Larz60+ - Feb-28-2018, 11:21 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Check if a list exists in given list of lists | Daniel94 | 2 | 2,329 |
Apr-07-2020, 04:54 PM Last Post: deanhystad |
|
Need help with List of Lists | johnissa | 13 | 6,168 |
Apr-22-2018, 09:29 PM Last Post: Larz60+ |
|
List of lists manipulation | Stahlios | 5 | 4,263 |
Apr-18-2018, 07:43 PM Last Post: Stahlios |
Users browsing this thread: 2 Guest(s)