how do you post code?
It keeps truncating the lines
MIT 6.189 A Gentle Introduction to Programming Using Python (OCW)
Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
There is no reason I can think of that you couldn't post your code, however if you are having issues you can always use pastebin or a similar service.
As eSpeX pointed out, there is pastebin. There is a similar thing on github. Where these come in VERY handy is when someone else wants to try your code. If I copy and paste a code sample people put on OS, it removes all the carriage returns. So for longer code samples, this makes things VERY hard to work with. If you use a code or text keeping service, this can eliminate the problem. That makes it much easier on people that want to try your code to debug it.
For the Mechanical MOOC, we recommend GitHub's Gist (github.com)
Not the answer you are looking for? Search for more explanations.
paste your code there and post the link here. select Python syntax highlighting when u paste.
you may attach it by file
# indent your Python code to put into an email
# glob supports Unix style pathname extensions
python_files = glob.glob('*.py')
for file_name in sorted(python_files):
print ' ------' + file_name
with open(file_name) as f:
for line in f:
print ' ' + line.rstrip()
It looks like ``` above and below a block also causes code to paste properly, and retain format on copy back. It turns on the preformatted text mode!