|Coincidentally, I've just been playing with various Chat AIs. I tried asking this, which is derived from a a Rust Rustlings HashMap exercise.
Quote:Consider these lines.
Interpret "England,France,4,2" to mean England beat France by 4 goals to 2.
Calculate the total goals scored and total goals conceded for each team and display the results as a table.
I ran this through several AIs - ChatGPT, Bing Chat, Google Bard, Perplexity, YouChat, Phind.
Even though some of them generated some nice Python code they all failed more-or-less miserably. With Bing Chat I was able to coax it to the correct answer, but it took 6 attempts.
You're right, I made a typo. The total goals conceded by Germany is 1, not 2. I'm sorry for the error.😳
The correct table is:
| Team | Total goals scored | Total goals conceded |
-- | ------------------ | -------------------- |
| England| 5 | 4 |
| France | 5 | 5 |
| Italy | 1 | 3 |
| Poland | 2 | 0 |
| Spain | 0 | 2 |
| Germany| 2 | 1 |
I hope this is the final answer. Thank you for your patience and feedback.🙏
So there's a way to go yet before AGI!