|
76 | 76 | }, |
77 | 77 | { |
78 | 78 | "cell_type": "code", |
79 | | - "execution_count": 1, |
| 79 | + "execution_count": null, |
80 | 80 | "metadata": { |
81 | 81 | "slideshow": { |
82 | 82 | "slide_type": "-" |
83 | 83 | } |
84 | 84 | }, |
85 | | - "outputs": [ |
86 | | - { |
87 | | - "name": "stdout", |
88 | | - "output_type": "stream", |
89 | | - "text": [ |
90 | | - "Hello world\n" |
91 | | - ] |
92 | | - } |
93 | | - ], |
| 85 | + "outputs": [], |
94 | 86 | "source": [ |
95 | 87 | "print(\"Hello world\")" |
96 | 88 | ] |
|
290 | 282 | }, |
291 | 283 | { |
292 | 284 | "cell_type": "code", |
293 | | - "execution_count": 2, |
| 285 | + "execution_count": null, |
294 | 286 | "metadata": { |
295 | 287 | "slideshow": { |
296 | 288 | "slide_type": "-" |
297 | 289 | } |
298 | 290 | }, |
299 | | - "outputs": [ |
300 | | - { |
301 | | - "data": { |
302 | | - "text/plain": [ |
303 | | - "7.5" |
304 | | - ] |
305 | | - }, |
306 | | - "execution_count": 2, |
307 | | - "metadata": {}, |
308 | | - "output_type": "execute_result" |
309 | | - } |
310 | | - ], |
| 291 | + "outputs": [], |
311 | 292 | "source": [ |
312 | 293 | "4+7/2" |
313 | 294 | ] |
314 | 295 | }, |
315 | 296 | { |
316 | 297 | "cell_type": "code", |
317 | | - "execution_count": 3, |
| 298 | + "execution_count": null, |
318 | 299 | "metadata": { |
319 | 300 | "slideshow": { |
320 | 301 | "slide_type": "subslide" |
321 | 302 | } |
322 | 303 | }, |
323 | | - "outputs": [ |
324 | | - { |
325 | | - "data": { |
326 | | - "text/plain": [ |
327 | | - "7" |
328 | | - ] |
329 | | - }, |
330 | | - "execution_count": 3, |
331 | | - "metadata": {}, |
332 | | - "output_type": "execute_result" |
333 | | - } |
334 | | - ], |
| 304 | + "outputs": [], |
335 | 305 | "source": [ |
336 | 306 | "#Nota: \n", |
337 | 307 | "# - the integer division is obtained from: //\n", |
|
341 | 311 | }, |
342 | 312 | { |
343 | 313 | "cell_type": "code", |
344 | | - "execution_count": 4, |
| 314 | + "execution_count": null, |
345 | 315 | "metadata": { |
346 | 316 | "slideshow": { |
347 | 317 | "slide_type": "subslide" |
348 | 318 | } |
349 | 319 | }, |
350 | | - "outputs": [ |
351 | | - { |
352 | | - "name": "stdout", |
353 | | - "output_type": "stream", |
354 | | - "text": [ |
355 | | - "3.5.3 (default, Jan 19 2017, 14:11:04) \n", |
356 | | - "[GCC 6.3.0 20170118]\n" |
357 | | - ] |
358 | | - } |
359 | | - ], |
| 320 | + "outputs": [], |
360 | 321 | "source": [ |
361 | 322 | "import sys\n", |
362 | 323 | "print(sys.version)" |
363 | 324 | ] |
364 | 325 | }, |
365 | 326 | { |
366 | 327 | "cell_type": "code", |
367 | | - "execution_count": 5, |
| 328 | + "execution_count": null, |
368 | 329 | "metadata": { |
369 | 330 | "slideshow": { |
370 | 331 | "slide_type": "-" |
371 | 332 | } |
372 | 333 | }, |
373 | | - "outputs": [ |
374 | | - { |
375 | | - "name": "stdout", |
376 | | - "output_type": "stream", |
377 | | - "text": [ |
378 | | - "/mntdirect/_scisoft/users/jupyter/jupy35/bin/python3.5\n" |
379 | | - ] |
380 | | - } |
381 | | - ], |
| 334 | + "outputs": [], |
382 | 335 | "source": [ |
383 | 336 | "print(sys.executable)" |
384 | 337 | ] |
385 | 338 | }, |
386 | 339 | { |
387 | 340 | "cell_type": "code", |
388 | | - "execution_count": 6, |
| 341 | + "execution_count": null, |
389 | 342 | "metadata": { |
390 | 343 | "slideshow": { |
391 | 344 | "slide_type": "subslide" |
392 | 345 | } |
393 | 346 | }, |
394 | | - "outputs": [ |
395 | | - { |
396 | | - "name": "stdout", |
397 | | - "output_type": "stream", |
398 | | - "text": [ |
399 | | - "The sum of ∑_i∈N i*i = 164\n" |
400 | | - ] |
401 | | - } |
402 | | - ], |
| 347 | + "outputs": [], |
403 | 348 | "source": [ |
404 | 349 | "#Calculator example\n", |
405 | 350 | "N = [1, 3, 4, 5, 7, 8]\n", |
|
421 | 366 | }, |
422 | 367 | { |
423 | 368 | "cell_type": "code", |
424 | | - "execution_count": 7, |
| 369 | + "execution_count": null, |
425 | 370 | "metadata": { |
426 | 371 | "slideshow": { |
427 | 372 | "slide_type": "-" |
428 | 373 | } |
429 | 374 | }, |
430 | | - "outputs": [ |
431 | | - { |
432 | | - "name": "stdout", |
433 | | - "output_type": "stream", |
434 | | - "text": [ |
435 | | - "\n", |
436 | | - "Welcome to Python 3.5's help utility!\n", |
437 | | - "\n", |
438 | | - "If this is your first time using Python, you should definitely check out\n", |
439 | | - "the tutorial on the Internet at http://docs.python.org/3.5/tutorial/.\n", |
440 | | - "\n", |
441 | | - "Enter the name of any module, keyword, or topic to get help on writing\n", |
442 | | - "Python programs and using Python modules. To quit this help utility and\n", |
443 | | - "return to the interpreter, just type \"quit\".\n", |
444 | | - "\n", |
445 | | - "To get a list of available modules, keywords, symbols, or topics, type\n", |
446 | | - "\"modules\", \"keywords\", \"symbols\", or \"topics\". Each module also comes\n", |
447 | | - "with a one-line summary of what it does; to list the modules whose name\n", |
448 | | - "or summary contain a given string such as \"spam\", type \"modules spam\".\n", |
449 | | - "\n", |
450 | | - "help> quit\n", |
451 | | - "\n", |
452 | | - "You are now leaving help and returning to the Python interpreter.\n", |
453 | | - "If you want to ask for help on a particular object directly from the\n", |
454 | | - "interpreter, you can type \"help(object)\". Executing \"help('string')\"\n", |
455 | | - "has the same effect as typing a particular string at the help> prompt.\n" |
456 | | - ] |
457 | | - } |
458 | | - ], |
| 375 | + "outputs": [], |
459 | 376 | "source": [ |
460 | 377 | "help()" |
461 | 378 | ] |
|
473 | 390 | }, |
474 | 391 | { |
475 | 392 | "cell_type": "code", |
476 | | - "execution_count": 8, |
| 393 | + "execution_count": null, |
477 | 394 | "metadata": { |
478 | 395 | "slideshow": { |
479 | 396 | "slide_type": "-" |
|
499 | 416 | }, |
500 | 417 | { |
501 | 418 | "cell_type": "code", |
502 | | - "execution_count": 9, |
| 419 | + "execution_count": null, |
503 | 420 | "metadata": { |
504 | 421 | "slideshow": { |
505 | 422 | "slide_type": "-" |
506 | 423 | } |
507 | 424 | }, |
508 | | - "outputs": [ |
509 | | - { |
510 | | - "name": "stdout", |
511 | | - "output_type": "stream", |
512 | | - "text": [ |
513 | | - "7 Hey\n" |
514 | | - ] |
515 | | - } |
516 | | - ], |
| 425 | + "outputs": [], |
517 | 426 | "source": [ |
518 | 427 | "x = 2 # anything after a '#' is a comment\n", |
519 | 428 | "y = 5\n", |
|
534 | 443 | }, |
535 | 444 | { |
536 | 445 | "cell_type": "code", |
537 | | - "execution_count": 10, |
| 446 | + "execution_count": null, |
538 | 447 | "metadata": { |
539 | 448 | "slideshow": { |
540 | 449 | "slide_type": "-" |
541 | 450 | } |
542 | 451 | }, |
543 | | - "outputs": [ |
544 | | - { |
545 | | - "name": "stdout", |
546 | | - "output_type": "stream", |
547 | | - "text": [ |
548 | | - "1 + 1 = 2\n" |
549 | | - ] |
550 | | - } |
551 | | - ], |
| 452 | + "outputs": [], |
552 | 453 | "source": [ |
553 | 454 | "x = y = 1\n", |
554 | 455 | "print(x, \"+\", y, \"=\", x+y )" |
|
572 | 473 | "name": "python", |
573 | 474 | "nbconvert_exporter": "python", |
574 | 475 | "pygments_lexer": "ipython3", |
575 | | - "version": "3.5.3" |
| 476 | + "version": "3.4.2" |
576 | 477 | } |
577 | 478 | }, |
578 | 479 | "nbformat": 4, |
|
0 commit comments