Computer Science, asked by kiranpatra176, 3 months ago

Keys of a dictionary cannot be: *

1. Python stirngs

2.Lists

3.Numbers

4.Tuples

Answers

Answered by ItzDarshana
1

Answer:

Python Strings - W3Schools

Strings are Arrays Like many other popular programming languages, strings in Python are arrays of bytes representing unicode characters. However, Python does not have a character data type, a single character is simply a string with a length of 1. Square brackets can be used to access elements of the string.

Slicing Strings

Answered by Breezywind
5

lists can't be used as the key of dictionary.

The values in a dictionary can be any type. The keys can be any immutable type. You cannot use a list as a key because a list is mutable. Similarly, you cannot use a tuple as a key if any of its elements are lists.

hope it helps you

mark me as brainliest please

Similar questions