fork download
  1. a = 'joao 1 0 10 2 3'
  2. b = a.split()
  3. c = []
  4. for i in b:
  5. try:
  6. c.append(int(i))
  7. except ValueError:
  8. pass
  9. print(max(c))
  10. print(min(c))
  11.  
  12. #https://pt.stackoverflow.com/q/346896/101
Success #stdin #stdout 0.01s 27712KB
stdin
Standard input is empty
stdout
10
0