Hi
Just started to learn coding so I hope this is an easy question for someone else to help with :)
I've written the code below and expect it to return a value to show the value of the bike reducing until it reaches less than 1000. Clearly I am missing something here as it's returning a weird error message that I can't find anything about on Google.
Appreciate any advice to help a newbie out :)
Just started to learn coding so I hope this is an easy question for someone else to help with :)
I've written the code below and expect it to return a value to show the value of the bike reducing until it reaches less than 1000. Clearly I am missing something here as it's returning a weird error message that I can't find anything about on Google.
Appreciate any advice to help a newbie out :)
def function_1(bike_value): bike_value = 2000 while bike_value > 1000: print("£",bike_value) bike_value * 0.9 output = print(bike_value) return output message = function_1 print(message)
Output:<function function_1 at 0x000000F9C85F2550>
Larz60+ write Jan-17-2021, 04:30 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed for you this time. Please use bbcode tags on future posts.
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed for you this time. Please use bbcode tags on future posts.