Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

The print() function - the keyword arguments

Both keyword arguments may be mixed in one invocation, just like here in the editor window. 

The example doesn't make much sense, but it visibly presents the interactions between end and sep. 

Can you predict the output? 

Run the code and see if it matches your predictions. 

Now that you understand the print() function, you're ready to consider how to store and process data in Python. 

Without print() , you wouldn't be able to see any results. 

LAB

Estimated time

5-10 minutes

Level of difficulty

Very Easy

Objectives

  • becoming familiar with the print() function and it's formatting capabilities
  • experimenting with Python code

Scenario

Modify the first line of code in the editor, using the sep and the end keywords, to match the expected output. Use the two print() functions in the editor. 

Don't change anything in the second print() invocation.