Python Forum
Evaluation of two different list in python?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Evaluation of two different list in python?
#1
I reach two below list in my program. and l2 is derived from l1.
l1=[767, 665, 999, 895, 907, 796, 561, 914, 719, 819, 555, 529, 672, 933, 882, 869, 801, 660, 879, 985]
l2=[4, 8, 8, 4, 2, 6, 8, 4, 2, 12, 8, 3, 24, 4, 18, 4, 6, 24, 4, 4]
now I am going to print out the maximum from l2, and the same indexing number in l1 as an output.
and if I have same max in l2, I shoud print out the max l2. plus the bigger number in l1 as an output.
for example in my two list the correct output would be:
672 24
Reply


Messages In This Thread
Evaluation of two different list in python? - by go127a - Apr-17-2019, 12:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  UndefinedEnvironmentName: 'extra' does not exist in evaluation environment EarthAndMoon 3 1,950 Oct-09-2023, 05:38 PM
Last Post: snippsat
  Conditional evaluation stsxbel 7 3,731 Jun-13-2021, 08:27 PM
Last Post: Gribouillis
  list evaluation go127a 2 2,604 Apr-12-2019, 11:13 AM
Last Post: DeaD_EyE
  operand evaluation order? insearchofanswers87 2 2,980 Sep-26-2018, 07:51 PM
Last Post: insearchofanswers87
  Recursive evaluation in parsley parser mqnc 0 2,678 Apr-13-2018, 09:02 PM
Last Post: mqnc
  Learning Python, newbie question about strings and evaluation new_learner_999 13 6,514 Feb-18-2018, 03:01 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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