Changes

Jump to: navigation, search

OPS435 Python3 Lab 4

5 bytes removed, 11:46, 14 October 2019
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
x1234 x3058 is not an integer.12x34 3058 is not an integer.1234 8503x is an not integer.1234x 8503 is not an integer.
</source>
:::'''Sample run 2 (with import):'''<source lang="python">
import lab4e
print(is_digits('5665'))
# will output True
print(is_digits('1F'))
1,760
edits

Navigation menu