# how could i write my code?

 0 Hello.. what is the best form to write my code shall i print a result as a test in the end of the code? or maybe more results? shall i put comments to explain? shall i put more strings as a style? please i need a guide to write my code as well because everybody needs time to solve HM so it will be bad if he/she got zero after all that.. Thanks a lot Shazly Ahmed asked 03 Mar '12, 11:24 Shazly Magdy... 127●1●9 accept rate: 0% Ulquiomaru 2.3k●1●18●46

 8 Some guidelines: Comments: the grading bot doesn't read them, but they will be useful for you when you review your code later. Output: If you're asked to print a number, print only the number, don't add any text (like "The answer is:"). If you're asked to print a string, then print strictly what is needed and nothing else. Check for tips inside the default comments, like # Make sure your procedure has a return statement. Leave professor's code as it is: Don't delete any comments left by the professor. And read them twice. Debugging and testing: If you need to use the print command to see how you're doing, or test your output, don't forget to delete or comment them before submitting your code. Printing more than asked, even for testing, will get you a Incorrect grade. If you want to be really clean, before submitting, copy your final code, click reset to have a pristine version of the question's professor's code and then paste where appropriate, run one time and submit. link This answer is marked "community wiki". answered 03 Mar '12, 11:51 Adriana Vill... 275●1●3●12 Olivier GERARD 2.2k●12●28●56 Nicely done. (03 Mar '12, 17:35) PeterUdacity ♦♦
 0 You have to pay great attention to the text of the exercise...there is not a fixed pattern... answered 03 Mar '12, 11:28 Lele 2.7k●3●15●34
 0 Code is graded by a bot so no point in adding comments unless you're just using them to keep you on track. Don't print out anything more than the question asks for, this will cause the bot to think you printed the wrong answer. I try to write my code so that it gets the job done and nothing more. If I use print statements to test or debug my output, I remove them before I submit my final answer. Keep it simple. answered 03 Mar '12, 11:30 turboyoshi 311●1●10 do I understand this correctly this bot does a print statement to see if the code works ??? (03 Mar '12, 11:54) annem1eke
Question text:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "Title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported

×15,299
×1,718
×195
×12
×9
×7