Disallow only spaces after a string - Python 3.3 -


if name = 'steve 'how disallow this? allow 'steve 2' , 'steve'

this because printing out keys dictionaries , don't want confusion between names displayed. thanks.

if name != name.rstrip():     # disallow 

Comments

Popular posts from this blog

command line - Use qwinsta in PowerShell ISE -

java - Incorrect order of records in M-M relationship in hibernate -

php - I want to create a website for polls/survey like this http://www.poll-maker.com/ -