File tree 2 files changed +13
-12
lines changed 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 1
1
/.ipynb_checkpoints
2
2
/.DS_Store
3
3
/nbody /
4
- /06-OOP-properties_setters_getters.ipynb
4
+ /06-OOP-properties_setters_getters.ipynb
5
+ /00-OOP-Intro.ipynb
Original file line number Diff line number Diff line change 512
512
},
513
513
{
514
514
"cell_type" : " code" ,
515
- "execution_count" : 39 ,
515
+ "execution_count" : 1 ,
516
516
"source" : [
517
517
" class Vector:\n " ,
518
518
" \n " ,
540
540
},
541
541
{
542
542
"cell_type" : " code" ,
543
- "execution_count" : 40 ,
543
+ "execution_count" : 2 ,
544
544
"source" : [
545
545
" v1 = Vector(1, 2)\n " ,
546
546
" v2 = Vector(3, 4)\n " ,
572
572
},
573
573
{
574
574
"cell_type" : " code" ,
575
- "execution_count" : 41 ,
575
+ "execution_count" : 3 ,
576
576
"source" : [
577
577
" class Vector:\n " ,
578
578
" \n " ,
603
603
},
604
604
{
605
605
"cell_type" : " code" ,
606
- "execution_count" : 43 ,
606
+ "execution_count" : 4 ,
607
607
"source" : [
608
608
" print(v1 == v2)"
609
609
],
620
620
},
621
621
{
622
622
"cell_type" : " code" ,
623
- "execution_count" : 45 ,
623
+ "execution_count" : 5 ,
624
624
"source" : [
625
625
" print (v1 != v2) # Python is smart"
626
626
],
658
658
},
659
659
{
660
660
"cell_type" : " code" ,
661
- "execution_count" : 57 ,
661
+ "execution_count" : 6 ,
662
662
"source" : [
663
663
" import math\n " ,
664
664
" \n " ,
707
707
},
708
708
{
709
709
"cell_type" : " code" ,
710
- "execution_count" : 58 ,
710
+ "execution_count" : 7 ,
711
711
"source" : [
712
712
" v = Vector(3, 4)\n " ,
713
713
" print(v.length())"
725
725
},
726
726
{
727
727
"cell_type" : " code" ,
728
- "execution_count" : 61 ,
728
+ "execution_count" : 8 ,
729
729
"source" : [
730
730
" v1 = (1, 2)\n " ,
731
731
" v2 = (3, 4)\n " ,
757
757
"orig_nbformat" : 4 ,
758
758
"language_info" : {
759
759
"name" : " python" ,
760
- "version" : " 3.10.0 " ,
760
+ "version" : " 3.9.7 " ,
761
761
"mimetype" : " text/x-python" ,
762
762
"codemirror_mode" : {
763
763
"name" : " ipython" ,
769
769
},
770
770
"kernelspec" : {
771
771
"name" : " python3" ,
772
- "display_name" : " Python 3.10.0 64-bit ('venv': venv) "
772
+ "display_name" : " Python 3.9.7 64-bit"
773
773
},
774
774
"interpreter" : {
775
- "hash" : " c38b9cfe579f9cd5b02e32305dc867d274ec6976fedcaf892f0dfa92dc619037 "
775
+ "hash" : " aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49 "
776
776
}
777
777
},
778
778
"nbformat" : 4 ,
You can’t perform that action at this time.
0 commit comments