This repository has been archived on 2025-12-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2024-09-20 14:17:13 +03:00

9 lines
253 B
Python

List1 = [12, "abc", 45.90, "1a", -34, "###"]
List2 = []
for i in List1:
if isinstance(i, int) == True or isinstance(i, float) == True:
List2.append(i)
List1.remove(i)
print('Values in List1:', List1)
print('Values in List2:', List2)