[Python-ideas] intput()

Bar Harel bzvi7919 at gmail.com
Mon Jan 25 15:58:33 EST 2016


def dictput():
  input()
  raise SyntaxError("You entered a dict in the wrong way")

Will probably raise a few lols.
btw flintput is float(int(input()) which rounds down. flinput is
float(input()).

-- Bar

On Mon, Jan 25, 2016 at 10:04 PM Greg Ewing <greg.ewing at canterbury.ac.nz>
wrote:

> Marcel O'Neil wrote:
> > def intput():
> >     return int(input())
>
> And also
>
>    def flintput():
>      return float(input())
>
> Yabba-dabba-doo-ly,
> Greg
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160125/0afc30a7/attachment-0001.html>


More information about the Python-ideas mailing list