Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5
1. You can try yourself in code playground Firstly, at the lesson, click the Try It Yourself, and go to a template Change the number to a large one, say 123 Run with %d Change the to %4d and run then change to %8d and run Can you do the above and come back to tell your tested result? 2. In case you cannot work out yourself, here is the result: https://code.sololearn.com/cF3sk6HZF2n9/?ref=app It is about formating the output with specific spacing. So the data looks like a table in the console.
1st Feb 2019, 4:14 AM
Gordon
Gordon - avatar