Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help
#3
Hi buran, thanks for your reply. This is what I have so far.

seq = [x['total_sales'] for x in cars]
most_sales = max(seq)
print(most_sales)
This gives me the most sales of all the total_sales of cars. From here on I am stuck and can't find a way to go further.
Reply


Messages In This Thread
help - by just_me - Mar-24-2020, 10:42 AM
RE: help - by buran - Mar-24-2020, 11:02 AM
RE: help - by just_me - Mar-24-2020, 11:13 AM
RE: help - by perfringo - Mar-24-2020, 12:02 PM
RE: help - by just_me - Mar-25-2020, 02:08 PM
RE: help - by ndc85430 - Mar-25-2020, 02:43 PM
RE: help - by just_me - Mar-25-2020, 03:05 PM
RE: help - by ndc85430 - Mar-25-2020, 04:40 PM
RE: help - by just_me - Mar-25-2020, 04:58 PM
RE: help - by ndc85430 - Mar-28-2020, 02:52 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020