Re: 2.6.7: Does socket.gethostbyaddr truncate?

2018-02-04 Thread Emil Natan
On Sat, Feb 3, 2018 at 1:11 PM, Peter J. Holzer wrote: > On 2018-01-30 08:56:16 -0800, Dan Stromberg wrote: > > dig -x should return a single PTR in all cases, shouldn't it? > > No. dig -x should return *all* PTR records. There is usually at most one > of them, but there may be several. (46 seems

Re: CodeAcademy Python Tip Calculator

2017-09-10 Thread Emil Natan
To see output you should use function that prints to the output, for example print(). You also do not calculate correctly the tax and tip, it is percentage from the meal cost, so the tax to be added to the total meal cost is meal * tax / 100. meal = 44.50 tax = 6.75 tip = 15.0 tax_amount = meal *

return from function

2015-12-21 Thread Emil Natan
I'm completely new to Python. I have the following function to find the parent for domain. It removes the left most label from the name and then checks if SOA record exists for the reminder, if not it calls itself recursively removing another label and checking again for SOA record. It works well f