0
Graphs in Python
Help me to understand 2 things in ‘def display’. Check the comments in the code https://code.sololearn.com/c66ZSmO8Nh83/?ref=app
1 Respuesta
+ 3
print() just prints a newline
Try;
print('first line')
print('second line')
print()
print('third line')
# Outputs
first line
second line
third line
{:4} is is a format specifier. This one will make the value passed in have a minimum width of 4. It's a bit too much to explain all about it in a single post so here is some more information to learn from.
https://realpython.com/JUMP_LINK__&&__python__&&__JUMP_LINK-formatted-output/