Array Mathematics

  • + 0 comments

    If you're ever unsure of what a function is doing in example code you should look at the documentation. Print is a built-in function of python so you can simply google "python documentation print" :

    https://docs.python.org/3/library/functions.html#print

    As seen in the link, "sep", or "separator", is the parameter that specifies what separate the series of outputs by. The default is ' ' (a space), which will be used when you specific.

    In this example, "hi" and "there" are outputs. print("hi", "there", sep="x") => hixthere

    "\n" means new line, so the outputs are each on a new line.