On Thu, Nov 7, 2013 at 2:25 PM, donsuni <dons...@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.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to