Myrah2056 Myrah2056
  • 03-01-2020
  • Computers and Technology
contestada

In a Python dictionary, an association is formed between what two components of the dictionary?

Respuesta :

flightbath flightbath
  • 03-01-2020

Answer:

Yes, an association is formed between key and its value.

Explanation:

A dictionary in python is an unordered data structure where 2 elements are entered for each entry - a key and its value. Unlike list, we have to give the index through which we want to access that value. This is more flexible than lists as in lists index can be of int type only but in dictionary key can be of any datatype. For example :

dict = { "apple: 1 , "banana" : 2 }

Every element need not be of same type, they can differ too.

Answer Link

Otras preguntas

Jason purchased 10 shirts for the members of a school club. Each shirt cost $4.99. Jason had a coupon for 20% off his total purchase. Sales tax was 7% after the
Explain the difference between a seamount and a volcanic island.(This is science actually, I just chose something because I couldn't find science.)
The voltage V of an audio speaker can be represented by V= 4 sqrt P ​, where P is the power of the speaker. An engineer wants to design a speaker with 361 watt
The division of the nucleus in reproductive cells is called
Plz help i just dont know plz help
What is a graph -2>x
5(2y-2)+4=4 What is y? Please show how you got it cause I always get -0.2
How many moles are there in 3.01 X10^23 molecules of Freon (CHCIF2)
How might meditation help Arlene?
Which of the following words is a synonym for sardonic? blunt succinct terse sarcastic