SHARE
TWEET

Untitled

a guest Jan 20th, 2020 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def split(b):
  2.     a = []
  3.     for i in b:
  4.         try:
  5.             num = int(i)
  6.             a.append(num)
  7.         except ValueError:
  8.             continue
  9.         return []
  10. def main():
  11.     b = input('Input: ')
  12.     print(a)
  13.  
  14. if __name__ == '__main__':
  15.     main()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top