Author: codertutor_3o6d0o

Python Tuples

Tuples and Sequences The Python Tuple is a another standard sequence data type and consists of a number of values separated by commas. Tuples are immutable (object with a fixed value). Immutable objects (numbers, strings, tuples) can not be modified and...

Python Sets

Sets The Python data type set is an unordered collection with no duplicate elements. The elements inside the set are separated by commas. Examples Extract values from a set >>> my_set = {1, 2, 3, 8, 12} >>> my_set {8, 1,...

Python Dictionaries

Dictionaries The Python data type dictionary is an unordered set of keys and values. The values can be searched using the keys, which can be any immutable type; strings and numbers can always be keys. Examples Extract values from a dictionary...

Python Define Function

Define Function How to define an function in Python language ? The simple way to write a function is to use def keyword, then write de function name, and inside function use the return keyword to print the output of the...

Python Define Class

Define Class How to define a class in Python language ? First you need to know that a class is an object type created by executing a class statement. The simple way to write a class is to use class keyword,...