def decideReward(points): if not(isinstance(points, int)): decision = "invalid" print("Invalid input! You should provide an integer!") return decision if points < 0: decision = "invalid" print("Invalid input! You should provide a non-negative integer!") return decision if points < 500: decision = "no reward" else: if points < 1500: decision = "appetiser" else: if points < 5000: decision = "main course" else: if points <= 10000: decision = "fine dining set" else: decision = "unable to earn > 10000" print("The reward is: " + decision) return decision`this is the code og my file loyalty.py which is located at '/Users/rakshitdhanda/Downloads/SQT_lab7_pack2/lab7'
Im trying to run this code in terminal , withMacBook-Air ~ % cd /Users/rakshitdhanda/Downloads/SQT_lab7_pack2MacBook-Air SQT_lab7_pack2 % cd lab7MacBook-Air lab7 % python3 loyalty.pyMacBook-Air lab7 % decideReward(4000)
as my terminal input , im expecting a desired output of "main course" but keep getting the output "zsh: unknown file attribute: 4", please help me , new to python and terminal and been stuck at this for 2 days.