Comments
Python has commenting capability for the purpose of in-code documentation. Comments start with a #, and Python will render the rest of the line as a comment: Example Comments in Python: #ThisRead More…
Python has commenting capability for the purpose of in-code documentation. Comments start with a #, and Python will render the rest of the line as a comment: Example Comments in Python: #ThisRead More…
HTML also defines special elements for defining text with a special meaning. HTML uses elements like <b> and <i> for formatting output, like bold or italic text. Formatting elements were designed to display special types of text: <b> – Bold text <strong> – Important textRead More…
There are three numeric types in Python: int float complex Variables of numeric types are created when you assign a value to them: Example x = 1 # int y = 2.8Read More…
Setting the style of an HTML element, can be done with the style attribute. The HTML style attribute has the following syntax: <tagname style=”property:value;”> The property is a CSS property. The valueRead More…
If you find it hard to understand Abstraction and Encapsulation, do not worry as I have covered these topics in detail with examples in the next section of this guide. Abstraction EncapsulationRead More…
Object: is a bundle of data and its behaviour(often known as methods). Objects have two characteristics: They have states and behaviors. Examples of states and behaviors Example 1: Object: House State: Address, Color, Area Behavior: OpenRead More…
Creating Variables Unlike other programming languages, Python has no command for declaring a variable. A variable is created the moment you first assign a value to it. Example x = 5 yRead More…