Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: using map function
Post: using map function

I am getting following error: Traceback (most recent call last): File "./map_function.py", line 13, in <module> name = map(name_split(person1,name),people) TypeError: 'list' object is not...
uttamsaha2 General Coding Help 1 4,223 Aug-05-2017, 10:28 AM
    Thread: Connecting two string after spliting
Post: RE: Connecting two string after spliting

Thank you very much for your response. It helped, however, I got another issue: code: if not line.startswith('*')|line.startswith('$'): # skips commented lines << (3) ...
uttamsaha2 General Coding Help 3 3,337 Jul-11-2017, 12:27 AM
    Thread: Connecting two string after spliting
Post: Connecting two string after spliting

I search for lines starts with '+', splits and take the 2nd part and add to the previous line: Code: if line.startswith('+'): line2 = line.split('+',1) [1] outfile.write(repr(p...
uttamsaha2 General Coding Help 3 3,337 Jul-10-2017, 06:39 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020