Python Forum
do_somenthing_with(x) for x in my_list if is_valid(x)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
do_somenthing_with(x) for x in my_list if is_valid(x)
#4
Obviously, the point here isn't to make a list (which is trivial), but to be able to execute commands in a "comprehension fashion".

See the title.

Thanks
Reply


Messages In This Thread
RE: do_somenthing_with(x) for x in my_list if is_valid(x) - by pystag - Sep-24-2018, 07:05 AM

Forum Jump:

User Panel Messages

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