Question: Struggle with its concept, need to solve in python, thanks! You and your team want to order personalized postcards to remember your visit to Las
Struggle with its concept, need to solve in python, thanks!
You and your team want to order personalized postcards to remember your visit to Las Vegas. You are given a list of tuples where each tuple is of the form: ( name (string), price (non-negative integer), age (non-negative integer), place (string) ) Write a function that generates postcards as strings only for prices strictly lower than 100. The output must be a dictionary with names as keys and postcards as their corresponding values. Postcards have the following components, all in lowercase: 1) The first four letters of the person's first name, if not enough, take all 2) The age 3) The person's full last name 4) The last digit of the price 5) The place Requirements: 1. Assert statements 2. You cannot use loops and list comprehension for this question. Instead, you must use lambda and map and/or filter functions. There are no restrictions on the number of lines
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
