Brand new to Python and this my first question on the forum (please be gentle rolleyes)
I have defined a dictionary with separate keys and values as lists, shown below;
people = {
"first": ["Corey", "Jane", "John"],
"last": ["Shafer", "Doe", "Millard"],
"email":["CoreyMSchafer@gmail.com","JaneDoe@email.com","JohnM81@hotmail.com"]
}
When i print the contents of the dictionary in “JupyterLab” the output is then returned in the following format;
{'first': ['Corey', 'Jane', 'John'],
'last': ['Shafer', 'Doe', 'Millard'],
'email': ['CoreyMSchafer@gmail.com',
'JaneDoe@email.com',
'JohnM81@hotmail.com']}
When i do the same using “Spyder” the output is returned with each keys contents list on the same line, as shown below;
[python]{'first': ['Corey', 'Jane', 'John'], 'last': ['Shafer', 'Doe', 'Millard'], 'email': ['CoreyMSchafer@gmail.com', 'JaneDoe@email.com', 'JohnM81@hotmail.com']}
How do i get “JupyterLab” to output the contents of the dictionary the same format as “Spyder” does, all on a single line? Or at least each keys list completely on each keys line.
Must be a setting in “JupyterLabs” perhaphs?
Many thanks for taking your time, any help is really appreciated.