Sometime there is confusion with string, list, tuple, dict (dictionary) in Python. In this we will talk about difference between these four and their syntax.
Difference Between String, List, Tuple, Dict
String List Tuple Dict
a=“hello” a=[‘hello’] a=(‘hello’) a={‘key’: ‘hello’)