List Comprehension in Python – Explained with Examples

In this post we will learn about the basic of list data-type in python, creating list in python and list comprehension.   List in Python: List is a changeable and sequenced data type which allows it to be indexed and sliced. Lists are containers used to store heterogeneous values such as integers, floats, strings, tuples, … 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

Top 10 Python Basic Programs – Most Common Tutorials

Top 10 Python Basic Programs – Most Common Tutorials Here is the list of programs Leap Year Check year= 2000 if (year % 4) == 0: if (year % 100) == 0: if (year % 400) == 0: print(“{0} is a leap year”.format(year)) else: print(“{0} is not a leap year”.format(year)) else: print(“{0} is a leap … Read more

%d bloggers like this: