# Section Summary

## Key Takeaways

### What we have learnt today

* The **`print() function`** is a built-in function. It prints/outputs a specified message to the screen/console window
* Built-in functions, contrary to user-defined functions are always available and dont have to be imported. Python 3.8 comes with **69 built-in** functions. You can find the full list in alphabetical order in the [Python Standard Library](https://docs.python.org/3/library/functions.html)
* To call a functions (***function invocation***) you need to use the function name followed by parentheses. You can pass arguments into a function by placing them inside the parentheses. You must separate arguments with a comma. **`print ("Hello" , "world!")`** . An "empty" **`print ()`** function outputs an empty line to the screen
* Python strings are delimited with quotes (single or double) `"I am a string"` or `'I am a string'`
* Computer programs are collections of **instructions.** An instruction is a command to perform a specific task when executed. eg. to print a certain message to a screen
* In Python strings, the **backslash** `(\)` is a special character which announces the next character has a different meaning. eg `\n` (the **newline character**) starts a new output line
* **Positional arguments** are the ones whose meaning is dictated by their position. eg, the second argument is outputted after the first, the third is outputted after the second etc
* **Keyword arguments** are the ones who's meaning is not dictated by their location, but by a special word (keyword) used to identify them
* The **`end`** and **`sep`** parameters can be used for formatting the output of the **`print ()`** function. The `sep` parameter specifies the separator between the outputted arguments.&#x20;
  * eg. **`print ("H", "E", "L", "L", "O", sep="-")`**\
    &#x20;     **`H-E-L-L-O`**
  * eg **`print ("Game over", "Want to Play Again?" , end=" ")`**\
    &#x20;     **`print ("Select", "Yes or No")`**
  * &#x20;  **`Game over Want to Play Again? Select Yes or No`**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://python.microcisco.com/python-inststitute-pcap/python-essentials-part-1/module-2/the-print-function/section-summary.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
