Hello,
I am working on Programming I using python language. Our
professor gave us a template in which to complete a program. The
following in a line of code in the template. Can someone please
explain what the code means? I don't understand what the numbers
and % represent. Any help would be appreciated.
Thank you.
outFile.write(str("%10d %12.2f %8d
%-15s\n" % (idNum, annualIncome, members, states)))
Hello, I am working on Programming I using python language. Our professor gave us a template in which to complete a prog
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Hello, I am working on Programming I using python language. Our professor gave us a template in which to complete a prog
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!