Python control flow – For loop and range function – with example
Python control flow – For loop and range function Loops are an important part of Python and other programming languages. Besides being able to iterate over iterables, they can also…
Python control flow – For loop and range function Loops are an important part of Python and other programming languages. Besides being able to iterate over iterables, they can also…
Python control flow – The while loop and the break statement The while loop in Python and other programming languages enables us to execute a group statement multiple times as…
The Python printing method and how to take in user input In this article, we will explore how to print objects to the terminal and how to take in user…
Python if-elif-else statements Conditional statements like Python if-elif-else are an essential part of decision-making in any programming language. In Python, conditional statements allow us to evaluate various conditions and execute…
Python Logical Operators Logical operators are used to performing various logical operations in programming. Python logical operators also allow you to check various conditions using multiple conditional operators. There are…
What are the Python comparison operators used for? Comparison operators also known as relational operators are used to comparing values of two operands. Depending on the condition being tested, comparison…
HTML How to change fonts - sample code The font-family property defines which font to display for a given HTML element. <h1 style="font-family:verdana;">This is a heading</h1> <p style="font-family:courier;">And this is…
HTML How to set a background image? – syntax <style> div { background-image: url('img_girl.jpg'); } </style> To what can you add a background image in HTML, and how? You…
HTML img syntax <img src="https://bit.ly/3xuNPz2" alt="waterfall" width="250px" height="250px"> HTML How to Add Image – the <img> tag If you want to display images on your website, you need…
HTML comment syntax: <!-- Comment --> Comments help you document issues, uncertainties and special solutions that may arise during coding. You can benefit from writing comments for yourself, but it's…
HTML: How to link CSS? There are three ways to add CSS styles to an HTML document. In this article, we are going to start with the most common, and…
How to change text color in HTML with color property If we want to change the text color on our website, we have to use the color CSS property. <style>…
How to disable scrolling in HTML? – The short answer If you don’t want to read the whole article and just want to hide the scroll bar, you can find…
How to change background color in HTML: the background-color property Here’s a possible solution for changing the background color of a page in HTML: <head> <style> body { background-color: PeachPuff;…
You have probably asked the question before starting to jump into learning programming. How big a challenge is this going to be? Is coding hard to learn? In this article,…
How to center an image in HTML? - Basic steps We can center images horizontally or vertically. There are many ways to center an image but we’ll try to keep…
What is Python logging used for? Python logging is a means of tracking events that occur whenever a software program is running mostly for purposes of debugging. Alternatively, we could…
What is a Python IDE used for? IDE stands for an integrated development environment. An IDE is an application that provides a set of tools and features in a simple…
What is Python File Reading? Reading and writing files is an incredibly important skill since more often than not developers need to work with files of different formats when developing…
What is a Python comment? In Python, comments are denoted with a hashtag symbol. And whatever is written after this will be ignored by the code editor. Python comments can…
What is Python count? The Python count method returns the number of times a specified value appears in a string or a list. https://youtu.be/VkH-v_0Doxo Using Python count with Strings…
Learning to program can be done not only with text-based and video-based learning materials but with programming games developed specifically for this purpose. It is an exciting, effective and entertaining…
What is a Python string? A string is a sequence of characters that are enclosed by a single or double quote. https://youtu.be/mAcZQQTpFEE In Python, a string is created…
What are Python requests? The python requests library is a third-party library for making HTTP requests to a specific URL. https://www.youtube.com/watch?v=YwGsQPLXD9Q&list=PLd6P5k1QrNkXuRQxbP__sD-KlYod7zJhW&index=26 How can you install and import the Python…
What is the Python Pandas library? Python Pandas is an open-source data science library built on the Python programming language that is useful in data analysis and manipulation. To install…
What are the Python operators? A Python operator is used to perform a specific operation on a variable or value. The assignment operator is the most common type of operator,…
What is the Python Map function? The Python map function is useful in executing a function on an iterable object. https://www.youtube.com/watch?v=oh5y2Xf31wE&list=PLd6P5k1QrNkXuRQxbP__sD-KlYod7zJhW&index=23 How to use the Python Map function?…
What is the Python List Comprehension method? Python List comprehension is an easy and precise way of creating lists from pre-existing iterable objects such as lists, tuples etc. https://youtu.be/Lbg4L5zSNNQ…
What is a Python List append method? Python List Append is a method that adds an element to the end of a list. https://www.youtube.com/watch?v=HIivHGBZ1V4&list=PLd6P5k1QrNkXuRQxbP__sD-KlYod7zJhW&index=21 How to use Python List…
What is the Python Lambda function? Lambda functions are essentially small and anonymous functions used in python code to perform specific tasks. Lambda functions only have one expression but can…