Python Forum
Why does 'nothing' count as a string?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why does 'nothing' count as a string?
#3
You can also write this
if test_string and test_string in allowable_letters :
    ...
Reply


Messages In This Thread
RE: Why does 'nothing' count as a string? - by Gribouillis - Nov-09-2021, 05:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Row Count and coloumn count Yegor123 4 1,523 Oct-18-2022, 03:52 AM
Last Post: Yegor123
  String Count Kristenl2784 1 1,776 Jul-23-2020, 02:10 AM
Last Post: millpond
  Beginner at Python. Trying to count certain integer from random string of code kiaspelleditwrong 3 2,565 Oct-14-2019, 10:40 AM
Last Post: perfringo
  How to Find & Count String Patterns Between two Markers in a HTML file ahmedwaqas92 3 3,149 Aug-19-2019, 10:12 AM
Last Post: ahmedwaqas92
  count string occurrences of 2nd file in lines of first showkat 1 2,492 Mar-01-2018, 11:25 AM
Last Post: showkat

Forum Jump:

User Panel Messages

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