Pregunta de entrevista de Anemoi Technologies India)

1. Define how you will differentiate between tuples and dictionaries in python

Respuesta de la entrevista

Anónimo

7 nov 2022

A tuple is a non-homogeneous data structure that can hold a single row as well as several rows and columns. Dictionary is a non-homogeneous data structure that contains key-value pairs. Tuples are represented by brackets (). Dictionaries are represented by curly brackets {}.