Cambios cgarcia

parent 68b33396
......@@ -836,7 +836,7 @@
},
{
"cell_type": "code",
"execution_count": 69,
"execution_count": 72,
"metadata": {},
"outputs": [
{
......@@ -844,8 +844,7 @@
"output_type": "stream",
"text": [
"[1, 1, 2, 3, 5, 8, 13]\n",
"{1, 2, 3, 34, 5, 8, 13, 21, 55, 89}\n",
"{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}\n",
"{89, 34, 21, 55}\n",
"bla bla bla\n"
]
}
......@@ -855,22 +854,11 @@
"b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]\n",
"\n",
"coincide=[]\n",
"no_coincide=[]\n",
"\n",
"for numA in a:\n",
" for numB in b:\n",
" if numA==numB:\n",
" coincide.append(numA)\n",
" else:\n",
" no_coincide.append(numA)\n",
" \n",
"print(coincide)\n",
"\n",
"A=set(a)\n",
"B=set(b)\n",
"print(A)\n",
"print(B)\n",
"A-B\n",
"=A.difference(B)\n",
"print(C)\n",
"print(\"bla bla bla\")"
]
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment