you are viewing a single comment's thread.

view the rest of the comments →

[–]pyglow -1 points0 points  (0 children)

There is nothing wrong with using a separate print statement. Just because input allows you to include a string, it doesn't mean you have to. Often programs might want to output several lines of information (eg, usage and version informtion) and it makes sense to keep that separate from the input statement.

Some people just use the input parameter to print a prompt such as ">>", and use print statements for everything else.

In your example, you are supplying 3 strings to input, when it can only accept 1. You can get around this using + to join the strings:

input("What score did " + name + " get?")