I am having a hard time identifying numbers in a text. Is there a way to recognize numbers?
pelupelu
0
Newbie Poster
Recommended Answers
Jump to PostI am having a hard time identifying numbers in a text. Is there a way to recognize numbers?
you can use isdigit
st = "abcd123" for i in st : if st.isdigit() == True : print i
use dir(st) to find out all functions associated with a …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.