I need to only allow integers and the letters "d" and "r" from raw input otherwise I need to run an exception. For example:
You entered 's' this is invalid
I have tried to use try/except statements but can't work it out. Is this the best way? Can someone help? Thanks.
TheManual 0 Newbie Poster
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.