):
h_book=weight('Hardback',2.1)
p_book=weight('Paperback',1.3)
print('Your total weight of book(s) at',pounds)
return pounds
def weight(desc,weight):
print('How many',desc,'books do you want at',weight,'pounds do you
w
'Paperback Enter the number 2: ' +\
'Electronic Enter the number 3: '))
num=int(input('Enter how many you need: '))
cost=0
if book==1:
cost=79
elif book==2:
cost=49
elif book==3:
cost=19
Ok, I have to get input from a user ('enter a number') and then get the
cube root of that number. I am having trouble with the code to get the
cube root. If anyone can help me solve this I would greatly appreciate it.
('enter a number')
n=number
??? cube root?