+ 1

Problem with Returns in Python Practice. Half-solved. Please help!!!

Hello, I keep getting a Syntax Error for Line 11 where i start the result2 variable. The arrow is pointing to the 2 in result2. I've stared at it for forever and dont understand what could be the issue please help me out. #Create a function that returns the result. def divide_by_five(number): return number/5 result = divide_by_five(150) print(str(int(number)+" "+"divided by 5 equals"+" "+str(int(result))+"!") result2=divided_by_five(result1) print(str(int(result))+" "+"divided by 5 equals"+" "+str(int(result2))+"!") result3 = divide_by_five(result2) print(str(int(result2))+" "+"divided by 5 equals"+" "+str(int(result3))+"!") result4 = divide_by_five(result3) print(str(int(result3))+" "+"divided by 5 equals"+" "+str(int(result4))+"!") result5 = divide_by_five(result4) print(str(int(result4))+" "+"divided by 5 equals"+" "+str(int(result5))+”!”) This issue was solved by placing 150 where i had (number) in result 1. But now the issue of i want that number to change when i change result 1s parameter has arisen lol. Help me out.

27th Aug 2018, 10:12 PM
Evan Taylor
Evan Taylor - avatar
1 Resposta
0
yea it was a typo in the post only. i figured it out. thank you!!!
27th Aug 2018, 11:35 PM
Evan Taylor
Evan Taylor - avatar