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 eine Website wie diese mit WordPress.com
Jetzt starten