Python SDET Day 02
- Any line starting with a hash sign (#) is considered a comment (single-line-comment)
- Comments are used for
- Purpose of the code that helps to do easier KT in future.
- Documenting your code in english.
- Comment old code and replace with new code. You are not deleting, and can easily change it back if needed.
- Multi line comment (we use “”” at the beginning and “”” at the end)
- Helps us to comment a block of code or do a more detailed write-up.
- PyCharm helps us to color our code based on the keyword or character or variable/object
- Change the editor settings to make it larger font or change colors and preferences.
- Personalize PyCharm to your needs or likings.
- Syntax Error - A message from Code or IDE to us that “I do not understand your instructions. You wrote something that does not resonate with me.”
- You cannot run the code till you correct the syntax error (will run only till that point).
- Comments are exempt from Syntax. All else in the code needs to match with the Programming Language Syntax.
- RunTime Error comes only during execution.
- Debug and ensure our code is defect free. Internal testing for our code. Unit Testing. We are the developers.
Complete and Continue
0 comments