Question: Given two lists as follows, Fname = [ ' John ' , 'Emily', 'Michael', 'Mary', 'Steven', 'Long', 'King' ] Lname = [ ' Maria '

Given two lists as follows,
Fname =['John', 'Emily', 'Michael', 'Mary', 'Steven', 'Long', 'King']
Lname =['Maria', 'Juan', 'Javier', 'Natalia', 'Pilar', 'Nguyen', 'Wang']
(1)[4 points] Use list comprehension to retrieve all names in the list Fname that has last letter as "g".
(2)[6 points] Simultaneously iterate over both lists and print the names in following format:
0. John Maria
1. Emily Juan
2. Michael Javier
......
6. King Wang

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!