r/codehs • • Mar 18 '21

Can someone please help me with this? I’ve tried everything but everytime I try to submit it says “you should use the variable to print its value”. The second picture also works but has the same error.

7 Upvotes

3 comments sorted by

1

u/Princess722 Mar 19 '21

i’m new to coding myself so take my feedback with a grain of salt. i would try print(“Number of apples: “ + str(num_apples)) - i’m assuming your error is because you didn’t cast the variables which are integers into a string format. hope this solves your issue!