Python Basic Output

There is not just one Output functions in Python. I will show it to you with the print() function.

You can print a string or a variable:

You can print more then one string by using a comma:

If you want to ouptut a float number with a specific number of decimal places, use the round() function:

For more information I cann recommend you this website:

https://realpython.com/python-input-output/

Hinterlasse einen Kommentar

Erstelle deine eigene Website – kostenlos auf WordPress.com.Erstelle deine eigene Website.
Kostenlos starten