DeaD_EyE Apr 23rd, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def pb(line):
- idx, title = line.split(maxsplit=1)
- if not title:
- title = None
- idx = int(idx)
- except ValueError:
- return 'First argument is not an integer'
- code = In[idx]
- except IndexError:
- return 'CellIndex does not exist.'
- return pastebin.paste_python(code, title)
RAW Paste Data