[Tutor] Finding a nearest perfect cube
Marc Tompkins
marc.tompkins at gmail.com
Fri Nov 8 00:24:33 CET 2013
On Thu, Nov 7, 2013 at 2:25 PM, donsuni <donsuni at gmail.com> wrote:
> Hi, I am new to python and i have to write a following code without using
> any
> inbuilt function or a for loop. Only while and if loops are allowed.
>
> If i input a number, i should get a perfect cube nearest to it.
> For eg: if
> input=4, output=8
> input=8, output=27
> and so on....
> can some one help with the code?
>
You're about to get a deluge of responses just like this, but:
We don't do people's homework for them.
If you've made some effort and you're stuck, show us what you've done and a
LOT of people will be happy to help. But doing it for you? Not so much.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20131107/89f30d44/attachment.html>
More information about the Tutor
mailing list