I am working on a app that uses lists
and tuples
interchangeably and I am having a hard time understanding 1) what's the community "Pythonic" way and 2) is it ok to use them interchangeably?
Examples:
val = "hello"
tmp = ("world", "hello")
val in tmp
tmp = ["world", "hello"]
val in tmp