TDT4109/Exercise 4 - Inspera/12.py

4 lines
79 B
Python
Raw Normal View History

2020-10-01 12:05:45 +02:00
import re
def correct_word(string):
return bool(re.match('^\w+$', string))