Cambios cgarcia

parent 68b33396
...@@ -836,7 +836,7 @@ ...@@ -836,7 +836,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 69, "execution_count": 72,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
...@@ -844,8 +844,7 @@ ...@@ -844,8 +844,7 @@
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"[1, 1, 2, 3, 5, 8, 13]\n", "[1, 1, 2, 3, 5, 8, 13]\n",
"{1, 2, 3, 34, 5, 8, 13, 21, 55, 89}\n", "{89, 34, 21, 55}\n",
"{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}\n",
"bla bla bla\n" "bla bla bla\n"
] ]
} }
...@@ -855,22 +854,11 @@ ...@@ -855,22 +854,11 @@
"b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]\n", "b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]\n",
"\n", "\n",
"coincide=[]\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", "\n",
"A=set(a)\n", "A=set(a)\n",
"B=set(b)\n", "B=set(b)\n",
"print(A)\n", "=A.difference(B)\n",
"print(B)\n", "print(C)\n",
"A-B\n",
"print(\"bla bla bla\")" "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