Sorting in python

Sorting in python

Sorting in python Sorting means arranging a large number of values in a specific order such as ascending and descending, alphabetical, distance, etc. Python provides built-in functions that offer powerful features to do basic sorting or customize ordering at a smooth level. Python has a built-in sort() list method that modifies it in-place and a sorted() … Read more

Some Basic Python String Programs-1

Some Basic Python String Programs-1

String A string is an immutable sequence of  Unicode characters. Unicode includes every character in all languages. Python does not have a character data type, a single character is simply a substring with a length of 1 and can be accessed by using indexing. The string module contains several useful constants and classes, as well … Read more

Some Basic List Programs-1

Some Basic List Programs-1

List List is a changeable and ordered data type that allows it to be indexed and sliced. It can contain heterogeneous values such as integers, floats, strings, tuples, lists, and dictionaries but they are commonly used to store collections of homogeneous objects. Python program to check if a list is empty or not empty_list = … Read more

Some Basic Python Tuple Programs-1

Some basic tuple programs

Tuple A tuple is an immutable and sequential collection of data that can be indexed and sliced. Python tuple can contain homogeneous as well as heterogeneous values of data types such as integers, floats, strings, lists, and dictionaries. Python Program to concatenate multiple tuples tup1 = (7, 1, 9) tup2 = (5, 2, 3, 4, … Read more

Dictionary and Tuple in Python – Difference in Properties

Dictionary and Tuple in Python

In this post, we will learn about tuples and dictionaries in python and how to use tuples as dictionary keys. What is tuple in python? A tuple is an ordered and immutable collection. Tuples can hold homogeneous values as well as heterogeneous values(integers, floats, strings, lists, dictionaries, etc). Tuples are sequential, thus they can be … Read more

List VS Tuple in Python – Differences Explained with Example

In this post we will learn about basic of list data-type in python, basic of tuple data-type in python and their difference with basic examples in place.   What is List in Python List is a mutable and sequenced data type. List can contain heterogeneous values such as integers, floats, strings, tuples, lists, and dictionaries … Read more

Linked List Program in Python – Create Linked List, Add Node, Iterrate and Print Data

Lets try to create Linked List in Python as part of out Data structure Tutorial. Problem Statement  Create Linked List Basic Program in Python. Solution Lets understand the Very basic about Linked List – Linked List are dynamic array type data structure where nodes and allocated on the fly i.e. dynamically and address/link or next … Read more

Python Program to Swap Two Number – Without Using Third Variable

This is python program to swap two numbers given by user as input  – a=input(“enter first number”) b=input(“enter second number”) print(f”numbers before swapping: a={a},b={b}”) a,b=b,a print(f”numbers after swapping: a={a},b={b}”) Tags: python basic programs, python swap two, top python,

Reverse Digits of an integer – Python Program – One of Most Common Interview Question

Python program to reverse a number, reverse digits of a number, reverse integer, python programs, python programs to reverse a number, basic python programs. Reverse Digits of an integer –  One of Most Common Interview Question Problem  – Write a Python program to reverse digits of an integer. Example 1 : Input : 123, Output … Read more

How to install python (also pyCharm ) in 2020

So now let’s discuss how to install python in windows, Mac, Linux Android and also iOS. So don’t worry, we will cover your every device.   Some points to understand first related to python : There are 2 versions of python mainly used today: python 2 and python 3 I will recommend you to learn … Read more

%d bloggers like this: