Dictionary A dictionary is a collection which is unordered, changeable and indexed. In Python dictionaries are written with curly brackets, and they have keys and values. Example Create and print a dictionary:Read More…
HTML Styles – CSS
CSS stands for Cascading Style Sheets. CSS describes how HTML elements are to be displayed on screen, paper, or in other media. CSS saves a lot of work. It can control the layout of multiple web pages allRead More…
HTML Input Attributes
The value Attribute The value attribute specifies the initial value for an input field: Example The readonly Attribute The readonly attribute specifies that the input field is read only (cannot be changed): The disabled Attribute The disabled attributeRead More…
Python Sets
Set A set is a collection which is unordered and unindexed. In Python sets are written with curly brackets. Example Create a Set: thisset = {“apple”, “banana”, “cherry”} print(thisset) Output Note: SetsRead More…
What is Abstraction?
Abstraction is a process where you show only “relevant” data and “hide” unnecessary details of an object from the user. For example, when you login to your bank account online, you enterRead More…
Python Tuples
Tuple A tuple is a collection which is ordered and unchangeable. In Python tuples are written with round brackets. Example Create a Tuple: thistuple = (“apple”, “banana”, “cherry”) print(thistuple) Output Access TupleRead More…
Links
You use hyperlinks, or simply links, to navigate to other pages in a website. A web page is a resource, and each web page has a unique identifier for people to locateRead More…
Python Lists
Python Collections (Arrays) There are four collection data types in the Python programming language: List is a collection which is ordered and changeable. Allows duplicate members. Tuple is a collection which is ordered andRead More…
HTML Colors
HTML colors are specified using predefined color names, or RGB, HEX, HSL, RGBA, HSLA values. Background Color You can set the background color for HTML elements: Example <h1 style=”background-color:DodgerBlue;”>Hello World</h1> <p style=”background-color:Tomato;”>HelloRead More…
Python Operators
Python Operators Operators are used to perform operations on variables and values. Python divides the operators in the following groups: Arithmetic operators Assignment operators Comparison operators Logical operators Identity operators Membership operatorsRead More…