Advertisement
Kwwiker

Untitled

Nov 7th, 2020
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. tx3 = '/content/drive/My Drive/3.txt'
  2. stroka = open(tx3).readline()
  3. res = ''
  4. a = []
  5. check ='0123456789'
  6. for i in range(0,len(stroka)-1):
  7.   if stroka[i] in check:
  8.     res += stroka[i]
  9.   else:
  10.     if len(res) != 0 and int(res) % 2 == 0:
  11.       a.append(int(res))
  12.     res = ''
  13. print(a)
  14. print(min(a))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement