Question

PYTHON:

From this list:

lista=[['Harry_Potter 1 2345 0 1', 'The_Matrix 1 034X 4 1', 'Black_mirror 0 45XX 3 1', 'Avenger 1 04XX 2 1', 'Cinderella 1 36XX 0 1', 'Snow_white 1 36XX 0 1', 'Rapunzel 1 36XX 0 1', 'Anne_with_an_E 0 24XX 0 0', 'Invented 0 1267 1 0', 'Invented2 1 67XX 4 1']

How do I create a function that return the table below with for/while loops (excluding the movie type genre....row):

I tried to use for loop to extract each category into a list but I cannot locate the element after the movie name (e.g: 1 for Harry_Potter, 1 for The_Matrix, 0 for Black_mirror...)

type rating origin 4, 5] 4] movie Harry_Potter The_Matrix Black_mirror Avenger Cinderella Snow_white Rapunzel Anne_with_an_EAny help would be appreciated. Thank you!

0 0
Add a comment Improve this question Transcribed image text
Answer #1

V OPEN EDITORS rangoli by X sample.py V HCKRRANK rangoli.py sample.py sample by import pandas as pd def table(lista): movie=U

Add a comment
Know the answer?
Add Answer to:
PYTHON: From this list: lista=[['Harry_Potter 1 2345 0 1', 'The_Matrix 1 034X 4 1', 'Black_mirror 0...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT