
Bradley T. answered 01/18/23
Tutor for Python and High School and Middle School Math
The problem here is the way you are trying to combine the strings. The "How many hours" string and the CLASS string are separated by a comma, so input thinks you are giving it two separate strings, which is not allowed. Input only takes in one string.
Using a comma to combine two strings only "works" within a print statement. And actually doesn't combine the strings, it just displays them to you combined.
If you want to combine two strings, the simplest way is with a + sign.
You could also use a format. something like:
The + sign is easier for me to understand, but the format has more features so you might want to get used to using it. Both are correct though.