File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "metadata" : {
33 "name" : " " ,
4- "signature" : " sha256:a9475a6f1134f87066829ecff7dab70b1fab2b2cc8ae3ee110b3e719b9626c23 "
4+ "signature" : " sha256:be423e458dd8b1ac6a36f49330311cc1a1741127c5610a636969efddf6d91597 "
55 },
66 "nbformat" : 3 ,
77 "nbformat_minor" : 0 ,
12991299 ],
13001300 "prompt_number" : 28
13011301 },
1302+ {
1303+ "cell_type" : " code" ,
1304+ "collapsed" : false ,
1305+ "input" : [
1306+ " a = [1, 2, 3, 4, 5]\n " ,
1307+ " for i in a:\n " ,
1308+ " if not i % 2:\n " ,
1309+ " a.remove(i)\n " ,
1310+ " print(a)"
1311+ ],
1312+ "language" : " python" ,
1313+ "metadata" : {},
1314+ "outputs" : [
1315+ {
1316+ "output_type" : " stream" ,
1317+ "stream" : " stdout" ,
1318+ "text" : [
1319+ " [1, 3, 5]\n "
1320+ ]
1321+ }
1322+ ],
1323+ "prompt_number" : 1
1324+ },
1325+ {
1326+ "cell_type" : " code" ,
1327+ "collapsed" : false ,
1328+ "input" : [
1329+ " b = [2, 4, 5, 6]\n " ,
1330+ " for i in b:\n " ,
1331+ " if not i % 2:\n " ,
1332+ " b.remove(i)\n " ,
1333+ " print(b)"
1334+ ],
1335+ "language" : " python" ,
1336+ "metadata" : {},
1337+ "outputs" : [
1338+ {
1339+ "output_type" : " stream" ,
1340+ "stream" : " stdout" ,
1341+ "text" : [
1342+ " [4, 5]\n "
1343+ ]
1344+ }
1345+ ],
1346+ "prompt_number" : 7
1347+ },
1348+ {
1349+ "cell_type" : " code" ,
1350+ "collapsed" : false ,
1351+ "input" : [
1352+ " c = [2, 4, 5, 6]\n " ,
1353+ " for i in c:\n " ,
1354+ " if i % 2 != 0:\n " ,
1355+ " c.remove(i)\n " ,
1356+ " print(c)"
1357+ ],
1358+ "language" : " python" ,
1359+ "metadata" : {},
1360+ "outputs" : [
1361+ {
1362+ "output_type" : " stream" ,
1363+ "stream" : " stdout" ,
1364+ "text" : [
1365+ " [2, 4, 6]\n "
1366+ ]
1367+ }
1368+ ],
1369+ "prompt_number" : 6
1370+ },
1371+ {
1372+ "cell_type" : " code" ,
1373+ "collapsed" : false ,
1374+ "input" : [
1375+ " not 4 % 2"
1376+ ],
1377+ "language" : " python" ,
1378+ "metadata" : {},
1379+ "outputs" : [
1380+ {
1381+ "metadata" : {},
1382+ "output_type" : " pyout" ,
1383+ "prompt_number" : 9 ,
1384+ "text" : [
1385+ " True"
1386+ ]
1387+ }
1388+ ],
1389+ "prompt_number" : 9
1390+ },
13021391 {
13031392 "cell_type" : " code" ,
13041393 "collapsed" : false ,
You can’t perform that action at this time.
0 commit comments