Python Assignment #2

This week we were asked to use the functions “print” and “string” and evaluate how they work together.

After using both functions I understand how they can be used together. The “print” function is used to print exactly what is entered in the same line of the function of the program. On the other hand, the “string” function is used to define a set string of characters that can be called at any time using the “print” function. This is useful when you are writing a program and you have a sentence that needs to be called multiple times, but you don’t want to write it out each time. You can define it as a string and simply print that string whenever it’s needed.

Leave a comment