You are viewing a single comment's thread from:

RE: GUESS AND CHECK - LEARNING TO CODE WITH PYTHON Ep 5

in #esteem6 years ago

I don't want to state the obvious, but in order to reduce the lines of code you write, you could have also commenced your file with the following, making the print line superfluous:

num = int(input('What perfect cube root do you want? '))

This will accomplish the same thing but with less code.

Thanks for this post. I really enjoyed reading it.

Sort:  

Thanks for your input, less lines are indeed much better. I appreciate you passing by.