Python Forum
Strings containing both symbols and letters
Thread Rating:
  • 2 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Strings containing both symbols and letters
#14
Hi you can use my code to find wether a string have letters or not ...


stri = 'qwerty'

if not stri.isalnum():
   print "string have symbols"
else:
    print "string don't have symbols"
Reply


Messages In This Thread
RE: Strings containing both symbols and letters - by ankit - Apr-05-2017, 12:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python script that deletes symbols in plain text nzcan 3 715 Sep-05-2023, 04:03 PM
Last Post: deanhystad
  Trying to understand strings and lists of strings Konstantin23 2 815 Aug-06-2023, 11:42 AM
Last Post: deanhystad
  Splitting strings in list of strings jesse68 3 1,816 Mar-02-2022, 05:15 PM
Last Post: DeaD_EyE
  cyrillic symbols in tables in reportlab. hiroz 5 11,576 Sep-10-2020, 04:57 AM
Last Post: bradmalcom
  Unexpected output: symbols for derivative not being displayed saucerdesigner 0 2,082 Jun-22-2020, 10:06 PM
Last Post: saucerdesigner
  Replacing symbols by " Tiihu 1 1,900 Feb-13-2020, 09:27 PM
Last Post: Larz60+
  How do I delete symbols in a list of strings? Than999 1 2,307 Nov-16-2019, 09:37 PM
Last Post: ibreeden
  Finding multiple strings between the two same strings Slither 1 2,543 Jun-05-2019, 09:02 PM
Last Post: Yoriz
  lists, strings, and byte strings Skaperen 2 4,262 Mar-02-2018, 02:12 AM
Last Post: Skaperen
  Python symbols AND letters gullidog 1 3,520 Apr-05-2017, 10:13 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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