Advertisement
Guest User

Untitled

a guest
Aug 9th, 2021
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. titles = []
  2. [[titles.append(book.getElementsByTagName(i)[0]) for i in xml_tuple] for book in books]
  3.  
  4. Правильно:
  5. titles = [
  6.     [titles.append(book.getElementsByTagName(i)[0]) for i in xml_tuple]
  7.     for book in books
  8. ]
  9.  
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement