Python Forum
Why am I getting this TypeError Exception?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why am I getting this TypeError Exception?
#1
Please see the attached photo. This is my first Python program. It runs fine and the code appears to be the same as the instructors. Yet VSCode is telling me I have an error and this error is not making sense to me. Can anyone please help me to understand what is going on here? Thanks.

Error is as follows and I have attached the screenshot to this post:

Exception has occurred: TypeError
check_win() missing 2 required positional arguments: 'player' and 'computer'
File "/Users/matthew/anaconda3/envs/pure_python/rock_paper_scissors.py", line 21, in <module>
results = check_win()
^^^^^^^^^^^
TypeError: check_win() missing 2 required positional arguments: 'player' and 'computer'

Attached Files

Thumbnail(s)
   
Reply


Messages In This Thread
Why am I getting this TypeError Exception? - by Affinity - Jul-05-2023, 03:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  During handling of the above exception, another exception occurred Skaperen 7 27,002 Dec-21-2018, 10:58 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020