[Tutor] Problems ugh help please

2012-10-13 Thread Amanda Colley
): 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

[Tutor] using the loop function while another

2012-10-09 Thread Amanda Colley
'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

[Tutor] Cube root

2012-09-15 Thread Amanda Colley
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?