Python Forum
Trying to append List/array based on condition
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to append List/array based on condition
#2
(Mar-20-2018, 12:18 PM)Mr_Keystrokes Wrote:
if x == "Reuben" or "Harry" or "Jonathan":

That isn't doing what you think it's doing. Head over this way, and read this :) https://python-forum.io/Thread-Multiple-...or-keyword
Reply


Messages In This Thread
RE: Trying to append List/array based on condition - by nilamo - Mar-20-2018, 04:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  append str to list in dataclass flash77 6 541 Mar-14-2024, 06:26 PM
Last Post: flash77
  unable to remove all elements from list based on a condition sg_python 3 479 Jan-27-2024, 04:03 PM
Last Post: deanhystad
  Sent email based on if condition stewietopg 1 885 Mar-15-2023, 08:54 AM
Last Post: menator01
Question How to append integers from file to list? Milan 8 1,476 Mar-11-2023, 10:59 PM
Last Post: DeaD_EyE
  create new column based on condition arvin 12 2,335 Dec-13-2022, 04:53 PM
Last Post: jefsummers
  How to assign a value to pandas dataframe column rows based on a condition klllmmm 0 868 Sep-08-2022, 06:32 AM
Last Post: klllmmm
  functional LEDs in an array or list? // RPi user Doczu 5 1,659 Aug-23-2022, 05:37 PM
Last Post: Yoriz
  read a text file, find all integers, append to list oldtrafford 12 3,657 Aug-11-2022, 08:23 AM
Last Post: Pedroski55
  Using .append() with list vs dataframe Mark17 7 10,698 Jun-12-2022, 06:54 PM
Last Post: Mark17
  Replace elements of array with elements from another array based on a third array Cola_Reb 6 1,946 May-13-2022, 06:06 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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