Tag: beginner
(page 2 of 2)

You may be faintly familiar with functions by constantly using the built-in functions that Python provides. For example print(), input(), etc. are some of the built-in functions in Python. A function consists a block of code with which we want to perform some kind action. Now instead of writing that particular code repeatedly when a […]

A tuple is a sequence data type that is similar to list. Tuples are immutable lists. It contains a set of numbers or characters or a combination of both separated by commas and enclosed within parenthesis (()). Lists are enclosed in square brackets ([]) whereas tuple is within parenthesis (()). The one thing that separates […]

We have stored values in variables and lists. In lists, the values were accessed using indices. Dictionary stores values using keys. Keys in dictionaries map directly to the values. It is like a hash table. It is enclosed in curly braces ({}) and every key and its value are separated by commas. A colon (:) […]

A Python list is a sequence data type similar to array. It contains characters(numbers, letters, words) separated by commas and enclosed in square brackets ([]). A list can consist of all elements as numbers, characters or a combination of both. The arrangement of the elements in a list is not specified (it can be sorted […]

Strings are the most important data types in Python. The string is defined as a combination of more than one character placed contiguously within quotation marks. In other programming languages a string is enclosed only in double quotes but in python, we have the freedom to put our string in either double or single quotes. […]

The concept of variables is same in any programming language. A variable is nothing but a memory location that is capable of storing some data or a specified value. Whenever you create a variable you reserve some space in memory to store the desired information. You can consider a variable as a box with some […]

What is programming? Programming in layman terms is a process of writing computer programs to make your work easy or to be more specific automated. You can complete your repetitive tasks by programming it beforehand by using a computer program. So what is a computer program? A computer program is nothing but a collection of […]