Solved SyntaxError: invalid syntax Problem 6 (2 points) | Chegg.com

Solved SyntaxError: invalid syntax Problem 6 (2 points) | Chegg.com