Question 3 not running from my end
Please, I need help. Why this this code not running from my end?
2 answers ( 0 marked as helpful)
Hey Ferdinand,
Thank you for reaching out!
In Python, lists are created by separating each element in the list by a comma. Therefore, in the definition of your companies
variable, you need to substitute the and
keyword by a comma.
Note that and
is a keyword in Python. This means it has a specific function in the language. You can learn more about it and the other logical operators in the "Logical operators" lecture in Section 5. Conditionals.
Kind regards,
365 Hristina
Thank you very much. The program ran very well after correcting that.