U missed % symbol before "-12s%s\n" it should be like "%-12s%s\n"
See The Reason is.. U are passing two arguments for writing it, As the % is not there it considered as string and so only one argument get converted to actual value.. and another one not converted...
In python u will get meaningful error.. try understand the error .. u can solve anything...
Leave a comment: