Python Dictionary

Python Dictionary

Hello friends, welcome to another session on Python Dictionary. In the last session, we discussed about Python Tuples. Dictionary is something which we have already used. A dictionary contains words and its meanings/synonyms alongside. In short, dictionary is a large sequence of ‘word-meaning’ pair. Python Dictionary on the other hand is a large sequence of ‘key-value’ pairs. Here you have a word which is key and a corresponding value for that key. Example:  {‘car’:’four wheeler’, ‘bike’:’two wheeler’} In above example,…

Read More Read More

Python Tuples

Python Tuples

In this tutorial, we will see the use of Python Tuples and how they are different from Python Lists. Tuples are data types that can store more than one element just like lists. In another session, we have already seen Python Lists. Lists are variable types which can store one or more than one element, in fact they can have zero element also. In other words, we can say that lists store sequence of elements which can be accessed using…

Read More Read More

Return statement in Python Function

Return statement in Python Function

In this session, we will be discussing Return statement in Python Function. In our previous two sessions, we understood basics of functions and parameterized functions. Today we will see how we can make a function to evaluate some instruction and return the result back to the function call. To make function return some result, we make use of Python Keyword ‘return’. There are 2 ways to use ‘return’ keyword in a function – using without expression/result and using with expression/result….

Read More Read More

Parameterized Functions in Python

Parameterized Functions in Python

Hi Friends, in previous session we saw an introduction to Python Function. In this session, we will learn about Parameterized Functions in Python. Parameterization is a way of passing data to the function so that the function body use that data and complete the task. Parameters are just simple variables that are defined in function and exist only with the function body. Important Points for Parameterized Functions in Python: • Parameters are defined with the parenthesis present in the def…

Read More Read More

Functions in Python – Introduction

Functions in Python – Introduction

In this session we will be working with functions in Python. Function is a piece of code that performs a specific task and we can re-use that function any number of times in our code. If we feel that the functionality that we are coding is too long, then its better to decompose the code into multiple parts/smaller functionalities and create functions are around them. For example, if we are building code to create calculator, then as a developer we…

Read More Read More

Python List Comprehension

Python List Comprehension

Hi Friends, welcome to yet another interesting session on Python List Comprehension. Today we will see another way to fill a list with its elements. In previous sessions, we have seen that we can add elements in a list using ‘append’ and ‘insert’ method. However, these methods may not be the best option when you want to add large number of elements in the list since we have add elements one by one. In such cases, there is another way…

Read More Read More

Best WordPress Plugins for Blogs

Best WordPress Plugins for Blogs

Hello Friends !!!! As we all know, with each passing day blogging as a profession is gaining a lot of momentum. More and more people are trying to work on blogging with the choice of their niche. While the Bluehost, Hostinger provides hosting services, WordPress provides Content  Management Services or we can say that WordPress provides look and feel to the website. To better manage out blog or website, its important know best WordPress plugins for blogs. Today in this…

Read More Read More

Methods in Python Lists

Methods in Python Lists

Hi Friends……Welcome again to our session on Methods in Python Lists. In the previous session, we had a detailed understanding about Python Lists. We will extend this session now to see how we can make use of the lists and some pre-defined methods and functions to be used with Python Lists. Lets start our session on Methods in Python Lists: 1. sort method on integers – Python Lists provides us with an in-build method to sort the list. Instead of…

Read More Read More

Python Lists

Python Lists

In this session, we will discuss about Python Lists – Uses and Features. So far, we have seen the use of variables which can hold only single value. Like var = 1 or str = ”Python”. These variables cannot hold more than 1 value at  a time. Either we can change their current value, or we must declare more variables. Now imagine a situation where you are writing a program where you would need 100 or 1000 variables. In such…

Read More Read More

The new Raspberry Pi 400 is a computer embedded in keyword

The new Raspberry Pi 400 is a computer embedded in keyword

Credit- https://www.theverge.com/The Raspberry Pi Foundation has announced the Raspberry Pi 400, a compact keyboard with an ARM-based computer built in. Just plug it into a TV or monitor using one of its two micro HDMI ports, insert a microSD card, attach a power cord and mouse, and you’ve got yourself a basic computer for day-to-day tasks, coding, or media playback. It’s available starting today as a standalone machine for $70 or in a bundle including a mouse, power supply, microSD…

Read More Read More