inhahe <inh...@gmail.com> writes: > On Tue, Sep 10, 2019 at 8:41 AM Pankaj Jangid <pankaj.jan...@gmail.com> > wrote: > >> You can do something like this ;-) >> >> >> import math >> >> def add_vat(a, b): >> return math.ceil(100*(a * 0.57 + sum([ord(c) for c in list(b)]) * >> 0.15538))/100 >> >> print(add_vat(101, 'high')) >> print(add_vat(101, 'low')) >> >> -- >> Pankaj Jangid >> -- >> https://mail.python.org/mailman/listinfo/python-list > > > BAD BAD BAD don't do Pankaj's suggestion, tim, it's DEVILSPEAK
:-( what did I do? This is giving correct ans. hahahaha -- Pankaj Jangid -- https://mail.python.org/mailman/listinfo/python-list