Last answered:

10 Jul 2023

Posted on:

04 Jul 2023

0

Why is my table returning an error?

{'France': 'Paris', 'Spain'; 'Madrid', 'United kingdom': 'London', 
'India':'New Delhi', 'United States': 'Washington DC', 'Italy':'Rome',
 'Denmark':'Copenhagen', 'Germany': 'Berlin', 'Greece':'Athens', 
'Bulgaria':'Sofia', 'Ireland':'Dublin, 'Mexico':'Mexico City'

5 answers ( 0 marked as helpful)
Instructor
Posted on:

05 Jul 2023

0

Hey Ferdinand,


Thank you for reaching out!


Could you please provide a screenshot of your code together with the error you are getting?


Kind regards,

365 Hristina

Posted on:

06 Jul 2023

0

This is it. 

Instructor
Posted on:

07 Jul 2023

0

Hey again Ferdinand,


Notice that you are missing a quotation mark after Dublin. Once you add it, your program should run without further errors.


Kind regards,

365 Hristina

Posted on:

07 Jul 2023

0

Thank you for your respond. But it is still not running and I could not debug it. 


Instructor
Posted on:

10 Jul 2023

0

Hey again Ferdinand,


As the error reads, somewhere in your code there is a variable called user that you haven't declared but you have tried to use. The following code on line 348:

user.input.lower()

implies that you are trying to use a variable user (that you haven't declared) while instead you want to use the variable user_input like so:

user_input.lower()


Hope this helps.


Kind regards,

365 Hristina

Submit an answer