Python Forum
Indexing + ''.join Help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Indexing + ''.join Help
#3
Based on the timing of your post, and 36 hours, it sounds like you missed the deadline.  For future reference, include what you've already done, the output you're getting, and the output you want to be getting, along with any error messages.  Otherwise, we're not going to do your homework for you :p

This particular example is fairly straightforward.  Here's one possible solution:
>>> make_str_from_row = lambda x,y: ''.join(x[y])
>>> make_str_from_row([['A', 'N', 'T', 'T'], ['X', 'S', 'O', 'B']], 0)
'ANTT'
Reply


Messages In This Thread
Indexing + ''.join Help - by OwlEyesToo - Nov-05-2016, 04:34 PM
RE: Indexing + ''.join Help - by Yoriz - Nov-05-2016, 05:54 PM
RE: Indexing + ''.join Help - by nilamo - Nov-07-2016, 05:18 PM

Forum Jump:

User Panel Messages

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