r/PythonLearning • • Oct 15 '26

Help Request I’m stuck on this assignment

I never struggle on assignments but this one is so confusing for me

132 Upvotes

66 comments sorted by

View all comments

1

u/being_unknown112 Oct 20 '26

1st: take float as input; instead of converting integer to float

2nd: use simple braces in productivity formula to make it more readable: (num_shifts/num_transactions)/ dollar_value Still update the formula: else it will not execute any if else block

3rd:use " " or ' ' in print statement for printing a string; print("Hello World!")

4th: if -eligibility blocks are not complete; use the other bonuses as well; bonus_3, bonus_4.

5th: bonus is not declared, so it will throw an error.