Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please help to the beginer
#1
Hi all,
I am struggling with making
this code:

text = open('input.txt', 'r', encoding='utf8')
for i in text.readlines():
    print(re.findall('\S+e\S+', i))
to be functional:

text = open('input.txt', 'r', encoding='utf8')
map(lambda i: print(re.findall('[0-9]+', i)), text.readlines())
I can't understand why it doesn't work
Please advise,
Thanks
Reply


Messages In This Thread
Please help to the beginer - by polo - Mar-26-2019, 02:06 AM
RE: Please help to the beginer - by micseydel - Mar-26-2019, 02:23 AM
RE: Please help to the beginer - by polo - Mar-26-2019, 08:32 AM
RE: Please help to the beginer - by micseydel - Mar-26-2019, 03:11 PM
RE: Please help to the beginer - by polo - Mar-27-2019, 01:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python for beginer triluan 2 2,432 Mar-03-2019, 12:40 PM
Last Post: triluan
  Need Help with Start-up (DIY Beginer) Styles4gh 2 2,505 Mar-09-2018, 02:06 AM
Last Post: Larz60+
  help for beginer libed 3 4,683 Nov-11-2016, 04:34 AM
Last Post: Blue Dog
  beginer oop help noissue 7 6,972 Oct-12-2016, 03:45 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

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