Question: Traceback ( most recent call last ) : File / home / test 1 . py , line 2 , in from cap
Traceback most recent call last:
File hometestpy line in
from cap import Shape, Colour, Card, Player
ImportError: cannot import name 'Shape' from 'cap' homecappy
Welcome to Sleuth!
Would you like to:
Ask a question.
Guess a card.
Which option would you like? The colour options are:
RED
BLUE
GREEN
YELLOW
Which colour do you want? The shape options are:
HEXAGON
CIRCLE
DIAMOND
RHOMBUS
Which shape do you want? Enter a number from inclusive: The player has the card RED, HEXAGON
Good guess!
Would you like to:
Ask a question.
Guess a card.
Which option would you like? The colour options are:
RED
BLUE
GREEN
YELLOW
Which colour do you want? The shape options are:
HEXAGON
CIRCLE
DIAMOND
RHOMBUS
Which shape do you want? Enter a number from inclusive: The player has the card RED, HEXAGON
Good guess!
Would you like to:
Ask a question.
Guess a card.
Which option would you like? The colour options are:
RED
BLUE
GREEN
YELLOW
Which colour do you want? The shape options are:
HEXAGON
CIRCLE
DIAMOND
RHOMBUS
Which shape do you want? Enter a number from inclusive: The player has the card RED, HEXAGON
Good guess!
Congratulations!
It took you questions and incorrect guesses.
The player's hand was: RED, HEXAGON RED, HEXAGON RED, HEXAGON
The diff shows differences between your output and the expected output.
Red is incorrect output your program produced.
Green is correct output your program did not produce.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
