summaryrefslogtreecommitdiff
path: root/progs/a794.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a794.py')
-rw-r--r--progs/a794.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/a794.py b/progs/a794.py
new file mode 100644
index 0000000..564ce23
--- /dev/null
+++ b/progs/a794.py
@@ -0,0 +1,7 @@
+def common_element(list1, list2):
+ result = False
+ for x in list1:
+ for y in list2:
+ if x == y:
+ result = True
+ return result \ No newline at end of file