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

13th Jul 2021, 11:34 PM
Ilya Vasilyev
Ilya Vasilyev - avatar
1 Réponse
+ 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/
14th Jul 2021, 12:37 AM
ChaoticDawg
ChaoticDawg - avatar