Answers for "python if not in list append"

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