Answers for "python add if not in list"

1

python list add if not present

lst.append(3) if 3 not in lst else lst
Posted by: Guest on July-27-2021

Python Answers by Framework

Browse Popular Code Answers by Language