Python 3.5 printing user inputs

Python 3.5 printing user inputs

print(Nice to meet you +name)

With proper string formatting:

print(Nice to meet you %s % name)

or

print(Nice to meet you {}.format(name))

Note the formatting is done inside the print() function

Python 3.5 printing user inputs

Leave a Reply

Your email address will not be published. Required fields are marked *