Please answer the ques in python with showing the answers ( There is only 1 ques in 2 steps) Step 1: Demonstrate your knowledge of zip and f-strings in your solution Given 2 related lists : names=['Joe', 'Amy', 'Lil', 'Poe', 'Ali', 'Sid'] grades=[65, 63, 89, 96, 59, 81] Write a program to output who passed and who failed. Passing is greater than or equal to 65. Output: Joe, you passed! Amy, you need to study more! Lil, you passed! Poe, you passed! Ali, you need to study more! Sid, you passed! Step 2: Demonstrate your ability to nest a for loop inside a for loop. Create 2 lists: fruits = apple, banana, cherry descriptions = sweet, tasty Write the program whose output is: Output: sweet apple sweet banana sweet cherry tasty apple tasty banana tasty cherry
Please answer the ques in python with showing the answers ( There is only 1 ques in 2 steps)
Step 1:
Demonstrate your knowledge of zip and f-strings in your solution
Given 2 related lists :
names=['Joe', 'Amy', 'Lil', 'Poe', 'Ali', 'Sid'] grades=[65, 63, 89, 96, 59, 81]
Write a program to output who passed and who failed. Passing is greater than or equal to 65.
Output:
Joe, you passed!
Amy, you need to study more!
Lil, you passed!
Poe, you passed!
Ali, you need to study more!
Sid, you passed!
Step 2:
Demonstrate your ability to nest a for loop inside a for loop. Create 2 lists:
fruits = apple, banana, cherry descriptions = sweet, tasty
Write the program whose output is:
Output:
sweet apple
sweet banana
sweet cherry
tasty apple
tasty banana
tasty cherry

Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 4 images









