concept print in category python

This is an excerpt from Manning's book Hello World! Third Edition.
That error message means you typed something that Python didn’t understand. In this example, print is misspelled pront, and Python doesn’t know what to do with that. If that happens to you, try again and make sure you type it exactly like in the example.
![]()
![]()
That’s right. That’s because print is a built-in function, and pront is not.
Waaaayyyy back in chapter 1, you learned about the print statement. It was the first command you ever used in Python. You’ve also seen (in chapter 5) that you can put end='' at the end of a print statement to make Python keep printing the next thing on the same line. You used that to make prompts for input(), until you learned the shortcut of putting the prompt right in the input() function.
The print statement automatically puts a newline at the end of whatever it prints, unless you tell it not to. And how do you tell it not to? By adding end='' (like you saw in chapter 5):
print('Hi', end='') print('There') >>> RESTART: C:/Users/Carter/Programs/HiThere2.py HiThereNotice that “Hi” and “There” were put directly together without any space in between. You can also pass multiple arguments to print to output them all on the same line, but Python adds a space in between:

This is an excerpt from Manning's book Get Programming: Learn to code with Python.
In this lesson, my objective was to teach you how to show output and how to get input from the user. You learned that you can print multiple objects by using only one print statement and that Python automatically adds a space between each object.
half = Fraction(1,2) quarter = Fraction(1,4)