Now that you have created your first Hello World Python program using the `print` statement, we can further explore the it. In short: it prints whatever argument(s) you pass to it onto the screen.
The print function takes one or more arguments. `print(“Hello World!”)` gives it one argument, namely the string “Hello World!”. It is also possible to have multiple arguments, which will be printed on the screen after each other with a space in between them, e.g.: `print(“Hello”, “World!”)`.
Python’s `print` function can also take in non-string arguments (a string is a data type in Python, it is a value that is surrounded by either single or double quotation marks, you will learn more about data types later). For instance, it can take in an integer or even a calculation. Any object you give to it will be converted to a string before being written to the screen.
For this assignment, create a Python script called `prints.py`. In this script, play around with the print statement in Python. Your script should have 3 `print` statements that altogether meet the following criteria:
- One `print` function call should have at least two arguments.
- One `print` function call should have the integer 15 as an argument.
- One `print` function call should have a sum of two integers as the argument, of which the result can be anything. E.g. you can use `print(20 + 3)`.
-!- CODE language-bash -!-$ python3 prints.py
$ python3 prints.py