Question: Traceback ( most recent call last ) : File / home / test 1 . py , line 2 , in from cap

Traceback (most recent call last):
File "/home/test1.py", line 2, in
from cap import Shape, Colour, Card, Player
ImportError: cannot import name 'Shape' from 'cap' (/home/cap.py)
Welcome to Sleuth!
Would you like to:
1. Ask a question.
2. Guess a card.
Which option would you like? The colour options are:
1. RED
2. BLUE
3. GREEN
4. YELLOW
Which colour do you want? The shape options are:
1. HEXAGON
2. CIRCLE
3. DIAMOND
4. RHOMBUS
Which shape do you want? Enter a number from 1-4(inclusive): The player has the card (1, RED, HEXAGON).
Good guess!
Would you like to:
1. Ask a question.
2. Guess a card.
Which option would you like? The colour options are:
1. RED
2. BLUE
3. GREEN
4. YELLOW
Which colour do you want? The shape options are:
1. HEXAGON
2. CIRCLE
3. DIAMOND
4. RHOMBUS
Which shape do you want? Enter a number from 1-4(inclusive): The player has the card (2, RED, HEXAGON).
Good guess!
Would you like to:
1. Ask a question.
2. Guess a card.
Which option would you like? The colour options are:
1. RED
2. BLUE
3. GREEN
4. YELLOW
Which colour do you want? The shape options are:
1. HEXAGON
2. CIRCLE
3. DIAMOND
4. RHOMBUS
Which shape do you want? Enter a number from 1-4(inclusive): The player has the card (3, RED, HEXAGON).
Good guess!
Congratulations!
It took you 0 questions and 0 incorrect guesses.
The player's hand was: (1, RED, HEXAGON),(2, RED, HEXAGON),(3, 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!