Python Forum
lower() applied at in operator
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
lower() applied at in operator
#2
You can use like:
if val.lower() in this_list:
but not the way you try. lower must be applied to individual item, therefore list doesn't qualify.
Reply


Messages In This Thread
lower() applied at in operator - by Beerforfree - Mar-22-2020, 12:26 AM
RE: lower() applied at in operator - by Larz60+ - Mar-22-2020, 02:44 AM
RE: lower() applied at in operator - by Beerforfree - Mar-22-2020, 11:41 AM
RE: lower() applied at in operator - by ndc85430 - Mar-22-2020, 11:51 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to apply function lower() to the list? Toltimtixma 2 796 Feb-10-2023, 05:15 PM
Last Post: Toltimtixma
  Beginner Higher Lower Game wallytan 2 1,609 Sep-29-2022, 05:14 PM
Last Post: deanhystad
  How to change a dataframe column to lower case zhujp98 5 6,350 Oct-29-2019, 06:42 PM
Last Post: zhujp98
  Retrieve protocol in lower case Variables 1 2,376 May-02-2019, 04:46 AM
Last Post: Larz60+
  How to only extract upper or lower triangular matrix into tabular form SriRajesh 3 25,709 Jan-04-2019, 01:21 AM
Last Post: scidam
  Strip does not work when applied on a string read from a text file. susmis666 1 2,399 Dec-27-2018, 07:07 AM
Last Post: perfringo
  How recursion function is applied? dukoolsharma 2 2,634 Dec-06-2018, 12:35 PM
Last Post: himanibansal
  How do I loop through a list and delete numerical elements that are 1 lower/higher? neko 4 4,326 Sep-05-2017, 02:25 PM
Last Post: ichabod801
  Applied Graph Theory daniellemmoore 2 3,676 Mar-14-2017, 09:47 PM
Last Post: zivoni

Forum Jump:

User Panel Messages

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