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'
points Use list comprehension to retrieve all names in the list Fname that has last letter as g
points Simultaneously iterate over both lists and print the names in following format:
John Maria
Emily Juan
Michael Javier
King Wang
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
