fork(1) download
  1. s = '12345'
  2.  
  3. if s.isdigit():
  4. print(1)
  5. else:
  6. print(2)
Success #stdin #stdout 0.01s 7144KB
stdin
Standard input is empty
stdout
1