Python

Python HandsOn HackerRank Solved

) Using intMath Operations Area & Volume Sunil had an assignment on “Areas & Volumes” given by his Mathematics Teacher. He was given 1.’Side”, from which he have to find – Area of Square & – Volume of Cube 2. Radius’ ,from which he have to find – Area of Circle & – Volume of… Read More

Tuples in Python

Tuples in python

A tuple is an immutable list means non-changeable list. Tuples are ordered in nature. Values can be accessed by index. Various operations can be performed like Iteration, looping , concatenation. Used when data is fixed and not require any changes. Syntax Accessing values of tuples You cannot modify the tuples as they are immutable Assigning… Read More

Dictionaries in Python

Python Dictionaries

Dictionaries hold key-value pairs which are known as items. SYNTAX : dictionary_name = { key_1 : value_1, key_N : value_N} Empty dictionary dictionary_name = {} To access items from the dictionary dictionary_name[ key ] Example : To Replace a value in Dictionary Add new item in dictionary Remove items from dictionary: use del keyword Accessing… Read More