« first day (477 days earlier)      last day (2889 days later) » 

2:53 AM
1
Q: Python 3: How Do I Restrict Words From An input() Containing "foo" or "bar"?

BradTheBrutalitistHow do I make it so if someone types in a word in input that contains "foo" or "bar" it is considered a bad name and they have to try again? This code that I quickly made up bans only the words "foo" and "bar": while(True): Input = input("Cool Name Only!:\n") if(Input.lower() in ['foo', ...

 
user559633
3:19 AM
1 message moved from Python
 

« first day (477 days earlier)      last day (2889 days later) »