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

String Coding Questions with solutions.

String coding questions

This section will cover all the questions that might be asked in any of your interviews or coding round. The string programs are written in basic C Language. In this section theory is not covered, this section focuses to improve practical coding knowledge of strings. After reading this blog you will be able to answer… Read More

1 4 5 6