1,760
edits
Changes
→PART 2 - Searching and Validating
if __name__ == '__main__':
test_list = ['x1234x3058','12x343058','12348503x','1234x8503']
for item in test_list:
if is_digits(item):
:::'''Sample run 1:'''<source lang="python">
./lab4e.py
</source>
:::'''Sample run 2 (with import):'''<source lang="python">
import lab4e
print(is_digits('5665'))
# will output True
print(is_digits('1F'))