Python Forum
need to compare 2 values in a nested dictionary
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
need to compare 2 values in a nested dictionary
#2
(Nov-29-2023, 08:30 PM)jss Wrote: i need to return True only if temperature <temperatureThreshold
The output that you want for the entire example dictionary is not clear. Can you explain it?
« We can solve any problem by introducing an extra level of indirection »
Reply


Messages In This Thread
RE: need to compare 2 values in a nested dictionary - by Gribouillis - Nov-30-2023, 05:41 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Replace values in Yaml file with value in dictionary PelleH 1 2,168 Feb-11-2025, 09:51 AM
Last Post: alexjordan
Question Using Lists as Dictionary Values bfallert 8 2,267 Apr-21-2024, 06:55 AM
Last Post: Pedroski55
  Loop through values and compare edroche3rd 6 1,834 Oct-18-2023, 04:04 PM
Last Post: edroche3rd
  Trying to compare string values in an if statement israelsattleen 1 1,154 Jul-08-2023, 03:49 PM
Last Post: deanhystad
  Printing specific values out from a dictionary mcoliver88 6 2,793 Apr-12-2023, 08:10 PM
Last Post: deanhystad
  Compare variable with values in a file paulo79 1 1,885 Apr-22-2022, 03:16 AM
Last Post: Pedroski55
Question How to print each possible permutation in a dictionary that has arrays as values? noahverner1995 2 2,730 Dec-27-2021, 03:43 AM
Last Post: noahverner1995
  Nested dictionary acting strange Pedroski55 2 2,954 May-13-2021, 10:37 PM
Last Post: Pedroski55
  format the output from a nested dictionary. nostradamus64 9 6,853 May-03-2021, 04:45 PM
Last Post: nostradamus64
Lightbulb Python Nested Dictionary michaelserra 2 3,747 Apr-18-2021, 07:54 AM
Last Post: michaelserra

Forum Jump:

User Panel Messages

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