├── Intermediate ├── 9_2_import │ ├── lib │ │ ├── config.py │ │ ├── __init__.py │ │ ├── src │ │ │ ├── __init__.py │ │ │ ├── c.py │ │ │ └── b.py │ │ └── a.py │ ├── notes.pptx │ ├── assignments │ │ ├── queue.docx │ │ └── questions.docx │ └── main.py ├── 13__name__ │ ├── assignments │ │ ├── shop │ │ │ ├── lib │ │ │ │ ├── __init__.py │ │ │ │ ├── db.py │ │ │ │ └── cart.py │ │ │ └── shop.py │ │ ├── shop.docx │ │ └── questions.docx │ └── notes.pptx ├── 0_elif │ ├── Notes.pptx │ └── Assignment │ │ └── elif.docx ├── 3_List │ ├── Notes.pptx │ └── Assignments │ │ ├── shop.docx │ │ └── questions.docx ├── 5_Dict │ ├── notes.pptx │ └── Assignments │ │ ├── dict.docx │ │ └── questions.docx ├── 10_Time │ ├── notes.pptx │ └── Assignments │ │ ├── time.docx │ │ └── questions.docx ├── 12_Open │ ├── notes.pptx │ └── Assignments │ │ ├── open.docx │ │ └── questions.docx ├── 1_nested │ ├── Notes.pptx │ └── Assignment │ │ └── nested.docx ├── 4_Tuple │ ├── notes.pptx │ └── Assignments │ │ ├── tuples.docx │ │ └── questions.docx ├── 6_Scope │ ├── Notes.pptx │ └── Assignments │ │ ├── scope.docx │ │ └── questions.docx ├── 11_Random │ ├── notes.pptx │ └── Assignments │ │ ├── random.docx │ │ └── questions.docx ├── 14_debug │ ├── README.docx │ └── programs │ │ ├── math │ │ └── main.py │ │ ├── ship │ │ └── main.py │ │ └── gender │ │ └── main.py ├── 9_1_import │ ├── notes.pptx │ └── assignments │ │ ├── import.docx │ │ └── questions.docx ├── 2_1_Function │ ├── Notes.pptx │ └── Assigments │ │ ├── func1.docx │ │ ├── func2.docx │ │ └── func3.docx ├── 2_2_Function │ ├── Notes.pptx │ └── Assignments │ │ └── bmi.docx ├── 15_password │ └── password.docx ├── 8_1_Error_handling │ ├── notes.pptx │ └── assignments │ │ ├── try.docx │ │ └── questions.docx ├── 8_2_Error_handling │ ├── notes.pptx │ ├── assignments │ │ ├── except.docx │ │ └── questions.docx │ └── ~$notes.pptx ├── 8_3_Error_handling │ ├── notes.pptx │ ├── assignments │ │ └── questions.docx │ └── ~$notes.pptx └── 7_Built_in_functions │ ├── del │ ├── Notes.pptx │ └── Assignments │ │ ├── del.docx │ │ └── questions.docx │ ├── join │ ├── notes.pptx │ └── assignments │ │ ├── join.docx │ │ └── questions.docx │ ├── range │ ├── Notes.pptx │ └── Assignment │ │ ├── pinforce.docx │ │ └── questions.docx │ ├── slice │ ├── notes.pptx │ └── assignments │ │ ├── slice.docx │ │ └── questions.docx │ ├── split │ ├── notes.pptx │ └── assignments │ │ ├── split.docx │ │ └── questions.docx │ ├── strip │ ├── notes.pptx │ └── assignments │ │ ├── space.docx │ │ └── questions.docx │ ├── replace │ ├── notes.pptx │ └── assignments │ │ ├── README.docx │ │ ├── crypto.docx │ │ ├── replace.docx │ │ └── questions.docx │ └── structures │ ├── Notes.pptx │ └── assignments │ ├── data.docx │ ├── questions.docx │ └── ~$w Microsoft Word Document.docx ├── Basic ├── 12_Index │ ├── Notes.pptx │ └── Assignment │ │ └── Index.docx ├── 8_Exam │ ├── part1.docx │ └── part2.docx ├── 11_Convert │ ├── Notes.pptx │ └── Assignment │ │ └── convert.docx ├── 1_Datatype │ ├── Notes.pptx │ ├── Assignment │ │ └── datatype.docx │ └── Example │ │ └── datatype.py ├── 2_Variable │ ├── Notes.pptx │ ├── Assignment │ │ └── variable.docx │ └── Example │ │ └── variable.py ├── 9_Comment │ ├── Notes.pptx │ └── Assignment │ │ └── Comment.docx ├── 14_User_input │ ├── Notes.pptx │ └── Assignment │ │ └── input.docx ├── 15_Exam │ ├── Day_1 │ │ ├── Age.docx │ │ ├── Find.docx │ │ └── Guess.docx │ ├── Day_2 │ │ └── Day.docx │ ├── Day_5 │ │ └── match.docx │ ├── Day_3 │ │ └── password.docx │ └── Day_4 │ │ └── questions.docx ├── 4_Comparison │ ├── Notes.pptx │ ├── Assignment │ │ └── compare.docx │ └── Example │ │ └── compare.py ├── 5_Condition │ ├── Notes.pptx │ ├── While │ │ └── Notes.pptx │ ├── Assignment │ │ ├── 1_condition.docx │ │ └── 2_condition.docx │ └── Example │ │ └── condition.py ├── 6_Iteration │ ├── Notes.pptx │ ├── Assignment │ │ ├── 1_Iteration.docx │ │ ├── 2_Iteration.docx │ │ └── 3_Iteration.docx │ └── Example │ │ └── iterate.py ├── 7_New_Style │ ├── Notes.pptx │ └── Assignment │ │ └── newStyle.docx ├── 10_Incremental │ ├── Notes.pptx │ └── Assignment │ │ └── Incremental.docx ├── 3_Boolean_algebra │ ├── Notes.pptx │ ├── Assignment │ │ └── logic.docx │ └── Example │ │ └── logic.py └── 13_lower_title_upper │ ├── Notes.pptx │ └── Assignment │ └── case.docx ├── Advance ├── 8_queue │ ├── notes.pptx │ └── Assignment │ │ └── queue.docx ├── 7_Any_All │ └── notes.pptx ├── 9_threading │ ├── notes.pptx │ └── assignment │ │ └── final.docx ├── 2_Inheritance │ ├── notes.pptx │ └── assignments │ │ └── inhert.docx ├── 3_Args_kwargs │ ├── notes.pptx │ └── assignments │ │ ├── program.docx │ │ └── questions.docx ├── 1_Class │ ├── section1 │ │ ├── notes.pptx │ │ └── assignments │ │ │ ├── object.docx │ │ │ └── questions.docx │ ├── section2 │ │ ├── notes.pptx │ │ └── assignments │ │ │ ├── class.docx │ │ │ └── questions.docx │ └── section3 │ │ └── calc.docx ├── 5_Ternary_Operator │ ├── notes.pptx │ └── assignments │ │ ├── list.docx │ │ └── random.docx └── 4_List_comprehension │ ├── notes.pptx │ └── assignment │ └── list.docx ├── README.md └── LICENSE /Intermediate/9_2_import/lib/config.py: -------------------------------------------------------------------------------- 1 | version = '0.1.1' -------------------------------------------------------------------------------- /Intermediate/9_2_import/lib/__init__.py: -------------------------------------------------------------------------------- 1 | # Date: 08/13/2018 2 | -------------------------------------------------------------------------------- /Intermediate/9_2_import/lib/src/__init__.py: -------------------------------------------------------------------------------- 1 | # Date: 08/13/2018 -------------------------------------------------------------------------------- /Intermediate/13__name__/assignments/shop/lib/__init__.py: -------------------------------------------------------------------------------- 1 | # Date: 08/20/2018 2 | # Author: Pure-L0G1C -------------------------------------------------------------------------------- /Basic/12_Index/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/12_Index/Notes.pptx -------------------------------------------------------------------------------- /Basic/8_Exam/part1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/8_Exam/part1.docx -------------------------------------------------------------------------------- /Basic/8_Exam/part2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/8_Exam/part2.docx -------------------------------------------------------------------------------- /Advance/8_queue/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Advance/8_queue/notes.pptx -------------------------------------------------------------------------------- /Basic/11_Convert/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/11_Convert/Notes.pptx -------------------------------------------------------------------------------- /Basic/1_Datatype/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/1_Datatype/Notes.pptx -------------------------------------------------------------------------------- /Basic/2_Variable/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/2_Variable/Notes.pptx -------------------------------------------------------------------------------- /Basic/9_Comment/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/9_Comment/Notes.pptx -------------------------------------------------------------------------------- /Advance/7_Any_All/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Advance/7_Any_All/notes.pptx -------------------------------------------------------------------------------- /Advance/9_threading/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Advance/9_threading/notes.pptx -------------------------------------------------------------------------------- /Basic/14_User_input/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/14_User_input/Notes.pptx -------------------------------------------------------------------------------- /Basic/15_Exam/Day_1/Age.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/15_Exam/Day_1/Age.docx -------------------------------------------------------------------------------- /Basic/15_Exam/Day_1/Find.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/15_Exam/Day_1/Find.docx -------------------------------------------------------------------------------- /Basic/15_Exam/Day_1/Guess.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/15_Exam/Day_1/Guess.docx -------------------------------------------------------------------------------- /Basic/15_Exam/Day_2/Day.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/15_Exam/Day_2/Day.docx -------------------------------------------------------------------------------- /Basic/15_Exam/Day_5/match.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/15_Exam/Day_5/match.docx -------------------------------------------------------------------------------- /Basic/4_Comparison/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/4_Comparison/Notes.pptx -------------------------------------------------------------------------------- /Basic/5_Condition/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/5_Condition/Notes.pptx -------------------------------------------------------------------------------- /Basic/6_Iteration/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/6_Iteration/Notes.pptx -------------------------------------------------------------------------------- /Basic/7_New_Style/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/7_New_Style/Notes.pptx -------------------------------------------------------------------------------- /Intermediate/0_elif/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/0_elif/Notes.pptx -------------------------------------------------------------------------------- /Intermediate/3_List/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/3_List/Notes.pptx -------------------------------------------------------------------------------- /Intermediate/5_Dict/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/5_Dict/notes.pptx -------------------------------------------------------------------------------- /Advance/2_Inheritance/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Advance/2_Inheritance/notes.pptx -------------------------------------------------------------------------------- /Advance/3_Args_kwargs/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Advance/3_Args_kwargs/notes.pptx -------------------------------------------------------------------------------- /Basic/10_Incremental/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/10_Incremental/Notes.pptx -------------------------------------------------------------------------------- /Intermediate/10_Time/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/10_Time/notes.pptx -------------------------------------------------------------------------------- /Intermediate/12_Open/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/12_Open/notes.pptx -------------------------------------------------------------------------------- /Intermediate/1_nested/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/1_nested/Notes.pptx -------------------------------------------------------------------------------- /Intermediate/4_Tuple/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/4_Tuple/notes.pptx -------------------------------------------------------------------------------- /Intermediate/6_Scope/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/6_Scope/Notes.pptx -------------------------------------------------------------------------------- /Intermediate/9_2_import/lib/src/c.py: -------------------------------------------------------------------------------- 1 | from . import b 2 | 3 | letter = 'c' 4 | 5 | print(b.letter) 6 | print(letter) -------------------------------------------------------------------------------- /Advance/1_Class/section1/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Advance/1_Class/section1/notes.pptx -------------------------------------------------------------------------------- /Advance/1_Class/section2/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Advance/1_Class/section2/notes.pptx -------------------------------------------------------------------------------- /Advance/1_Class/section3/calc.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Advance/1_Class/section3/calc.docx -------------------------------------------------------------------------------- /Basic/15_Exam/Day_3/password.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/15_Exam/Day_3/password.docx -------------------------------------------------------------------------------- /Basic/15_Exam/Day_4/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/15_Exam/Day_4/questions.docx -------------------------------------------------------------------------------- /Basic/3_Boolean_algebra/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/3_Boolean_algebra/Notes.pptx -------------------------------------------------------------------------------- /Basic/5_Condition/While/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/5_Condition/While/Notes.pptx -------------------------------------------------------------------------------- /Intermediate/11_Random/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/11_Random/notes.pptx -------------------------------------------------------------------------------- /Intermediate/13__name__/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/13__name__/notes.pptx -------------------------------------------------------------------------------- /Intermediate/14_debug/README.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/14_debug/README.docx -------------------------------------------------------------------------------- /Intermediate/9_1_import/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/9_1_import/notes.pptx -------------------------------------------------------------------------------- /Intermediate/9_2_import/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/9_2_import/notes.pptx -------------------------------------------------------------------------------- /Advance/5_Ternary_Operator/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Advance/5_Ternary_Operator/notes.pptx -------------------------------------------------------------------------------- /Advance/8_queue/Assignment/queue.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Advance/8_queue/Assignment/queue.docx -------------------------------------------------------------------------------- /Basic/12_Index/Assignment/Index.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/12_Index/Assignment/Index.docx -------------------------------------------------------------------------------- /Basic/13_lower_title_upper/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/13_lower_title_upper/Notes.pptx -------------------------------------------------------------------------------- /Intermediate/2_1_Function/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/2_1_Function/Notes.pptx -------------------------------------------------------------------------------- /Intermediate/2_2_Function/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/2_2_Function/Notes.pptx -------------------------------------------------------------------------------- /Advance/4_List_comprehension/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Advance/4_List_comprehension/notes.pptx -------------------------------------------------------------------------------- /Basic/11_Convert/Assignment/convert.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/11_Convert/Assignment/convert.docx -------------------------------------------------------------------------------- /Basic/9_Comment/Assignment/Comment.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/9_Comment/Assignment/Comment.docx -------------------------------------------------------------------------------- /Intermediate/0_elif/Assignment/elif.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/0_elif/Assignment/elif.docx -------------------------------------------------------------------------------- /Intermediate/15_password/password.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/15_password/password.docx -------------------------------------------------------------------------------- /Advance/9_threading/assignment/final.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Advance/9_threading/assignment/final.docx -------------------------------------------------------------------------------- /Basic/14_User_input/Assignment/input.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/14_User_input/Assignment/input.docx -------------------------------------------------------------------------------- /Basic/1_Datatype/Assignment/datatype.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/1_Datatype/Assignment/datatype.docx -------------------------------------------------------------------------------- /Basic/2_Variable/Assignment/variable.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/2_Variable/Assignment/variable.docx -------------------------------------------------------------------------------- /Basic/4_Comparison/Assignment/compare.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/4_Comparison/Assignment/compare.docx -------------------------------------------------------------------------------- /Basic/7_New_Style/Assignment/newStyle.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/7_New_Style/Assignment/newStyle.docx -------------------------------------------------------------------------------- /Intermediate/10_Time/Assignments/time.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/10_Time/Assignments/time.docx -------------------------------------------------------------------------------- /Intermediate/12_Open/Assignments/open.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/12_Open/Assignments/open.docx -------------------------------------------------------------------------------- /Intermediate/3_List/Assignments/shop.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/3_List/Assignments/shop.docx -------------------------------------------------------------------------------- /Intermediate/5_Dict/Assignments/dict.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/5_Dict/Assignments/dict.docx -------------------------------------------------------------------------------- /Intermediate/8_1_Error_handling/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/8_1_Error_handling/notes.pptx -------------------------------------------------------------------------------- /Intermediate/8_2_Error_handling/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/8_2_Error_handling/notes.pptx -------------------------------------------------------------------------------- /Intermediate/8_3_Error_handling/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/8_3_Error_handling/notes.pptx -------------------------------------------------------------------------------- /Advance/2_Inheritance/assignments/inhert.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Advance/2_Inheritance/assignments/inhert.docx -------------------------------------------------------------------------------- /Basic/3_Boolean_algebra/Assignment/logic.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/3_Boolean_algebra/Assignment/logic.docx -------------------------------------------------------------------------------- /Basic/5_Condition/Assignment/1_condition.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/5_Condition/Assignment/1_condition.docx -------------------------------------------------------------------------------- /Basic/5_Condition/Assignment/2_condition.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/5_Condition/Assignment/2_condition.docx -------------------------------------------------------------------------------- /Basic/6_Iteration/Assignment/1_Iteration.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/6_Iteration/Assignment/1_Iteration.docx -------------------------------------------------------------------------------- /Basic/6_Iteration/Assignment/2_Iteration.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/6_Iteration/Assignment/2_Iteration.docx -------------------------------------------------------------------------------- /Basic/6_Iteration/Assignment/3_Iteration.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/6_Iteration/Assignment/3_Iteration.docx -------------------------------------------------------------------------------- /Intermediate/13__name__/assignments/shop.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/13__name__/assignments/shop.docx -------------------------------------------------------------------------------- /Intermediate/1_nested/Assignment/nested.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/1_nested/Assignment/nested.docx -------------------------------------------------------------------------------- /Intermediate/4_Tuple/Assignments/tuples.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/4_Tuple/Assignments/tuples.docx -------------------------------------------------------------------------------- /Intermediate/6_Scope/Assignments/scope.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/6_Scope/Assignments/scope.docx -------------------------------------------------------------------------------- /Advance/1_Class/section2/assignments/class.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Advance/1_Class/section2/assignments/class.docx -------------------------------------------------------------------------------- /Advance/3_Args_kwargs/assignments/program.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Advance/3_Args_kwargs/assignments/program.docx -------------------------------------------------------------------------------- /Basic/13_lower_title_upper/Assignment/case.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/13_lower_title_upper/Assignment/case.docx -------------------------------------------------------------------------------- /Intermediate/10_Time/Assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/10_Time/Assignments/questions.docx -------------------------------------------------------------------------------- /Intermediate/11_Random/Assignments/random.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/11_Random/Assignments/random.docx -------------------------------------------------------------------------------- /Intermediate/12_Open/Assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/12_Open/Assignments/questions.docx -------------------------------------------------------------------------------- /Intermediate/2_1_Function/Assigments/func1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/2_1_Function/Assigments/func1.docx -------------------------------------------------------------------------------- /Intermediate/2_1_Function/Assigments/func2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/2_1_Function/Assigments/func2.docx -------------------------------------------------------------------------------- /Intermediate/2_1_Function/Assigments/func3.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/2_1_Function/Assigments/func3.docx -------------------------------------------------------------------------------- /Intermediate/2_2_Function/Assignments/bmi.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/2_2_Function/Assignments/bmi.docx -------------------------------------------------------------------------------- /Intermediate/3_List/Assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/3_List/Assignments/questions.docx -------------------------------------------------------------------------------- /Intermediate/4_Tuple/Assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/4_Tuple/Assignments/questions.docx -------------------------------------------------------------------------------- /Intermediate/5_Dict/Assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/5_Dict/Assignments/questions.docx -------------------------------------------------------------------------------- /Intermediate/6_Scope/Assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/6_Scope/Assignments/questions.docx -------------------------------------------------------------------------------- /Intermediate/9_1_import/assignments/import.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/9_1_import/assignments/import.docx -------------------------------------------------------------------------------- /Intermediate/9_2_import/assignments/queue.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/9_2_import/assignments/queue.docx -------------------------------------------------------------------------------- /Advance/1_Class/section1/assignments/object.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Advance/1_Class/section1/assignments/object.docx -------------------------------------------------------------------------------- /Advance/3_Args_kwargs/assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Advance/3_Args_kwargs/assignments/questions.docx -------------------------------------------------------------------------------- /Advance/4_List_comprehension/assignment/list.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Advance/4_List_comprehension/assignment/list.docx -------------------------------------------------------------------------------- /Advance/5_Ternary_Operator/assignments/list.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Advance/5_Ternary_Operator/assignments/list.docx -------------------------------------------------------------------------------- /Advance/5_Ternary_Operator/assignments/random.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Advance/5_Ternary_Operator/assignments/random.docx -------------------------------------------------------------------------------- /Basic/10_Incremental/Assignment/Incremental.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Basic/10_Incremental/Assignment/Incremental.docx -------------------------------------------------------------------------------- /Intermediate/11_Random/Assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/11_Random/Assignments/questions.docx -------------------------------------------------------------------------------- /Intermediate/13__name__/assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/13__name__/assignments/questions.docx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/del/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/del/Notes.pptx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/join/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/join/notes.pptx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/range/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/range/Notes.pptx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/slice/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/slice/notes.pptx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/split/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/split/notes.pptx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/strip/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/strip/notes.pptx -------------------------------------------------------------------------------- /Intermediate/9_1_import/assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/9_1_import/assignments/questions.docx -------------------------------------------------------------------------------- /Intermediate/9_2_import/assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/9_2_import/assignments/questions.docx -------------------------------------------------------------------------------- /Advance/1_Class/section1/assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Advance/1_Class/section1/assignments/questions.docx -------------------------------------------------------------------------------- /Advance/1_Class/section2/assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Advance/1_Class/section2/assignments/questions.docx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/replace/notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/replace/notes.pptx -------------------------------------------------------------------------------- /Intermediate/8_1_Error_handling/assignments/try.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/8_1_Error_handling/assignments/try.docx -------------------------------------------------------------------------------- /Basic/3_Boolean_algebra/Example/logic.py: -------------------------------------------------------------------------------- 1 | 2 | isAlive = True 3 | 4 | 5 | if not(not(True)): 6 | print "It's alive" 7 | else: 8 | print "It's dead" 9 | -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/structures/Notes.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/structures/Notes.pptx -------------------------------------------------------------------------------- /Intermediate/8_2_Error_handling/assignments/except.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/8_2_Error_handling/assignments/except.docx -------------------------------------------------------------------------------- /Intermediate/9_2_import/lib/src/b.py: -------------------------------------------------------------------------------- 1 | from lib import a 2 | from .. import config 3 | from .. config import version 4 | 5 | 6 | 7 | letter = 'b' 8 | print(a.letter) -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/del/Assignments/del.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/del/Assignments/del.docx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/join/assignments/join.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/join/assignments/join.docx -------------------------------------------------------------------------------- /Intermediate/8_1_Error_handling/assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/8_1_Error_handling/assignments/questions.docx -------------------------------------------------------------------------------- /Intermediate/8_2_Error_handling/assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/8_2_Error_handling/assignments/questions.docx -------------------------------------------------------------------------------- /Intermediate/8_3_Error_handling/assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/8_3_Error_handling/assignments/questions.docx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/slice/assignments/slice.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/slice/assignments/slice.docx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/split/assignments/split.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/split/assignments/split.docx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/strip/assignments/space.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/strip/assignments/space.docx -------------------------------------------------------------------------------- /Intermediate/9_2_import/lib/a.py: -------------------------------------------------------------------------------- 1 | from . config import version # import from this current directory; the . means current directory 2 | 3 | 4 | letter = 'a' 5 | print(version) -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/del/Assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/del/Assignments/questions.docx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/join/assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/join/assignments/questions.docx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/range/Assignment/pinforce.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/range/Assignment/pinforce.docx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/range/Assignment/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/range/Assignment/questions.docx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/replace/assignments/README.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/replace/assignments/README.docx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/replace/assignments/crypto.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/replace/assignments/crypto.docx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/replace/assignments/replace.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/replace/assignments/replace.docx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/slice/assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/slice/assignments/questions.docx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/split/assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/split/assignments/questions.docx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/strip/assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/strip/assignments/questions.docx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/structures/assignments/data.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/structures/assignments/data.docx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/replace/assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/replace/assignments/questions.docx -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/structures/assignments/questions.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/structures/assignments/questions.docx -------------------------------------------------------------------------------- /Basic/5_Condition/Example/condition.py: -------------------------------------------------------------------------------- 1 | DRINKING_AGE = 21 2 | age = 18 3 | 4 | 5 | if age >= DRINKING_AGE: 6 | print "You can drink" 7 | 8 | else: 9 | print "You're too young" 10 | -------------------------------------------------------------------------------- /Intermediate/8_2_Error_handling/~$notes.pptx: -------------------------------------------------------------------------------- 1 | Mohamed Mohamed -------------------------------------------------------------------------------- /Intermediate/8_3_Error_handling/~$notes.pptx: -------------------------------------------------------------------------------- 1 | Mohamed Mohamed -------------------------------------------------------------------------------- /Intermediate/7_Built_in_functions/structures/assignments/~$w Microsoft Word Document.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bitwise-01/LearnPython/HEAD/Intermediate/7_Built_in_functions/structures/assignments/~$w Microsoft Word Document.docx -------------------------------------------------------------------------------- /Intermediate/9_2_import/main.py: -------------------------------------------------------------------------------- 1 | from lib.src import b # lib/src/b.py 2 | from lib.src import c # lib/src/c.py 3 | # from lib.src.vendor.new.src.lib import fake # lib/src/vendor/new/src/lib/fake.py 4 | 5 | from lib.src.c import letter as letter_c 6 | 7 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Intro to Python 2 | 3 | ### Description 4 | This course is designed for anyone who want to learn Python. The course is designed to get you programming in Python in as little time as possible. 5 | 6 | 7 | Watch my [Videos](https://www.youtube.com/channel/UCSdgnEGQHJfHrjU48hQISBQ/playlists?disable_polymer=1) to help you more. 8 | -------------------------------------------------------------------------------- /Basic/4_Comparison/Example/compare.py: -------------------------------------------------------------------------------- 1 | # Date: 05/15/2018 2 | # Author: Mohamed Sheikh 3 | # Description: Comparison 4 | 5 | 6 | # create variables that hold ages 7 | age_Derek = 24 8 | age_Sami = 20 9 | age_Tim = 24 10 | age_Steve = 20 11 | 12 | 13 | # display messages 14 | print "True or False Derek is older than Sami: {}".format(age_Derek > age_Sami) 15 | print "True or False Steve is younger than Sami: {}".format(age_Steve < age_Sami) 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Basic/6_Iteration/Example/iterate.py: -------------------------------------------------------------------------------- 1 | 2 | name = "Sami" 3 | isAlive = True 4 | 5 | 6 | 7 | # display every letter in the name variable 8 | for letter in name: 9 | print letter 10 | 11 | 12 | 13 | # look for the a letter then stop if found 14 | for leter in name: 15 | if letter == 'a': 16 | print 'Found letter' 17 | break 18 | 19 | 20 | # awesome code 21 | while isAlive == True: 22 | print 'Eat' 23 | print 'Sleep' 24 | print 'Wake up' 25 | 26 | # stop the loop 27 | isAlive = False 28 | 29 | 30 | -------------------------------------------------------------------------------- /Basic/2_Variable/Example/variable.py: -------------------------------------------------------------------------------- 1 | # Date: 05/14/2018 2 | # Author: Mohamed Sheikh 3 | # Description: Simple variables 4 | 5 | 6 | # create variables 7 | name = "Sami" 8 | age = 20 9 | major = "Software Dev" 10 | 11 | 12 | # display variables 13 | print name 14 | print age 15 | print major 16 | 17 | 18 | # display data 19 | print "Name: {}".format(name) 20 | print "Age: {}".format(age) 21 | print "Major: {}".format(major) 22 | 23 | 24 | # display a sentence 25 | print "Hello, my name is {} and I'm {} yrs old. My major is {}.".format(name, age, major) 26 | -------------------------------------------------------------------------------- /Basic/1_Datatype/Example/datatype.py: -------------------------------------------------------------------------------- 1 | # Date: 05/15/2018 2 | # Author: Mohamed Sheikh 3 | # Description: Datatypes 4 | 5 | 6 | # strings. Any value that is inside quotes 7 | secret_message = 'This is a secret message' 8 | name = 'Sami' 9 | str_age = '32' 10 | str_age = '87' 11 | str_isAlive = 'False' 12 | 13 | 14 | # integers. Any whole number 15 | age = 15 16 | speed = 98 17 | 18 | 19 | # floats. Any decimal number 20 | pi = 3.1415 21 | phi = 1.61803 22 | 23 | 24 | # booleans. Any value that is either True or False 25 | isAlive = True 26 | isActive = False 27 | continue -------------------------------------------------------------------------------- /Intermediate/14_debug/programs/math/main.py: -------------------------------------------------------------------------------- 1 | # Date: 08/22/2018 2 | # Author: Pure-L0G1C 3 | # Description: Math 4 | 5 | def add(): 6 | ans = x + y 7 | print('{} + {} = {}'.format(x, y, ans)) 8 | 9 | def sub(x, y): 10 | ans = x - y 11 | print('{} - {} = {}'.format(x, y, ans)) 12 | 13 | def main(): 14 | x = int(input('Enter a number: ')) 15 | y = str(input('Enter another number: ')) 16 | 17 | try: 18 | arith = str(input('Enter 1 for add and 0 for subtract: ')) 19 | except keyboardinterrupts: 20 | print('User abort') 21 | 22 | if arith === 1: 23 | add() 24 | else: 25 | sub(x, y) 26 | 27 | if __name__ == '_main__': 28 | main(0) -------------------------------------------------------------------------------- /Intermediate/14_debug/programs/ship/main.py: -------------------------------------------------------------------------------- 1 | # Date: 08/22/2018 2 | # Author: Pure-L0G1C 3 | # Description: Shipping details 4 | 5 | LOG_FILE = 'sales.log' 6 | 7 | def write_log(data): 8 | print('Write data about username: {}'.formats(data['nam'])) 9 | with open(LOG_FILE, 'wa') as log_file: 10 | log_file..write(data) 11 | 12 | def read_log(): 13 | with open(LOG_FILE, 'ra') as log_file: 14 | for line in my_log_file 15 | print(line) 16 | 17 | def question_user(): 18 | customer = {} 19 | customer['name'] = input('Enter your name: ') 20 | customer['state'] = inut('Enter your state: ') 21 | customer['city'] == input('Enter your city: ') 22 | customer['zip'] = input('Enter your zip: ') 23 | return customer 24 | 25 | def main(name): 26 | data = question_user() 27 | write_log(data) 28 | read_log() 29 | 30 | if __name__ == '__main__': 31 | main() -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Mohamed 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Intermediate/14_debug/programs/gender/main.py: -------------------------------------------------------------------------------- 1 | # Date: 08/22/2018 2 | # Author: Pure-L0G1C 3 | # Description: Ask multiple questions and perdict user's gender 4 | 5 | BOY = 0 6 | GIRL == 1 7 | 8 | questions = [ 9 | 'Which color do you prefer?\n{}: Red\n{}: Pink'.format(BOY, GIRL), 10 | 'Which genre movie do you prefer?\n{}: Action\n{}: Romance'format(BOY, GIRL), 11 | 'Which would you prefer if you were a child?\n{}: Hot wheels\n{}: Barbie'.format(GIRL) 12 | ] 13 | 14 | def ask_questions(): 15 | is_boy = 0 16 | is_girl = 0 17 | 18 | qnum = 0 19 | while qnum != len(questions): 20 | print(questions[qnum]) 21 | num = int(input('\nEnter an option(0/1): ')) 22 | 23 | if num == BOY: 24 | is_boy += 1 25 | elif num = GIRL: 26 | is_girl += 1 27 | else 28 | pass 29 | 30 | if num = BOY or num == GIRL: 31 | qnums += 1 32 | 33 | return is_boy, is_a_girl 34 | 35 | def calc_results(is_boy, is_girl): 36 | total_ques = len(questions) 37 | prob_of_boy = (is_boy/totat_ques) * 100 38 | prob_of_girl = (is_girl/totat_ques) * 100 39 | return prob_of_boy 40 | 41 | def main(): 42 | is_boy, is_girl = ask_question(is_girl) 43 | prob_of_boy, prob_of_girl = calc_results(is_a_boy, is_girl) 44 | print('\nResults\nBoy: {}%\nGirl: {}%'.format(prob_of_boy, prob_of_girl)) 45 | 46 | if __name__ = '__main__': 47 | main() -------------------------------------------------------------------------------- /Intermediate/13__name__/assignments/shop/lib/db.py: -------------------------------------------------------------------------------- 1 | # Date: 08/20/2018 2 | # Author: Pure-L0G1C 3 | # Description: A database of all the items in the store 4 | 5 | db = { 6 | 1: { 7 | 'name': 'hygiene', 8 | 'items': { 9 | 1: { 'name': 'deodorant', 'price': 3.97 }, 10 | 2: { 'name': 'after-shave', 'price': 7.61 }, 11 | 3: { 'name': 'shampoo', 'price': 6.99 } 12 | } 13 | }, 14 | 15 | 2: { 16 | 'name': 'food', 17 | 'items': { 18 | 1: { 'name': 'pizza', 'price': 9.89 }, 19 | 2: { 'name': 'pizza & BBQ-wings', 'price': 35.12 }, 20 | 3: { 'name': 'salad', 'price': 8.69 } 21 | } 22 | }, 23 | 24 | 3: { 25 | 'name': 'beverage', 26 | 'items': { 27 | 1: { 'name': 'mtn-dew', 'price': 4.68 }, 28 | 2: { 'name': 'coca-cola', 'price': 4.68 }, 29 | 3: { 'name': 'pepsi', 'price': 4.68 } 30 | } 31 | }, 32 | 33 | 4: { 34 | 'name': 'book', 35 | 'items': { 36 | 1: { 'name': 'the giver', 'price': 8.99 }, 37 | 2: { 'name': 'crazy house', 'price': 9.62 }, 38 | 3: { 'name': 'the president is missing', 'price': 18.00 } 39 | } 40 | }, 41 | 42 | 5: { 43 | 'name': 'electronic', 44 | 'items': { 45 | 1: { 'name': 'macbook air', 'price': 1449.99 }, 46 | 2: { 'name': 'UHDTV 40 inches', 'price': 329.99 }, 47 | 3: { 'name': 'OfficeJet Pro 8720', 'price': 179.99 } 48 | } 49 | } 50 | } -------------------------------------------------------------------------------- /Intermediate/13__name__/assignments/shop/lib/cart.py: -------------------------------------------------------------------------------- 1 | # Date: 08/20/2018 2 | # Author: Pure-L0G1C 3 | # Description: Cart 4 | 5 | from sys import exit 6 | from os import system # os.system allows us to run command-line commands 7 | from platform import system as platform # platform.system is used for getting current platform 8 | 9 | cart = [] 10 | DISCOUNT = 0.20 # 20% 11 | 12 | # for clearing screen 13 | if platform().lower() == 'windows': 14 | clear_screen_cmd = 'cls' 15 | else: 16 | clear_screen_cmd = 'clear' 17 | 18 | def clear_scrn(): 19 | system(clear_screen_cmd) 20 | 21 | def view(): 22 | if not cart:return 23 | clear_scrn() 24 | print('\n\t# ----- Cart ----- #') 25 | print('\n#\t\tProduct($)\n') 26 | 27 | num = 0 28 | for item in cart: 29 | num += 1 30 | print('{}\t\t{}(${})'.format(num, item['name'].title(), item['price'])) 31 | 32 | try: 33 | input('\nTotal items: {}\nTotal price: ${}\nPress Enter to Continue'.format(len(cart), calc_price())) 34 | except KeyboardInterrupt: 35 | check_out() 36 | except:pass 37 | 38 | def add(item): 39 | name = item['name'] 40 | price = item['price'] 41 | cart.append({ 'name': name, 'price': price }) 42 | 43 | def calc_price(): 44 | total_price = 0.00 45 | for item in cart: 46 | price = item['price'] 47 | total_price += price 48 | return total_price 49 | 50 | def outline(): 51 | total_items = len(cart) 52 | total_price = calc_price() 53 | return total_items, total_price 54 | 55 | def check_out(): 56 | clear_scrn() 57 | price = calc_price() 58 | _price = price - (price * DISCOUNT) 59 | print('Original price: ${}\nDiscount price: ${}'.format(price, _price)) 60 | exit() -------------------------------------------------------------------------------- /Intermediate/13__name__/assignments/shop/shop.py: -------------------------------------------------------------------------------- 1 | # Date: 08/20/2018 2 | # Author: Pure-L0G1C 3 | # Description: Shopping app 4 | 5 | from lib import cart 6 | from lib.db import db 7 | 8 | codes = { 9 | 'view_cart': { 'code': -1, 'func': cart.view }, 10 | 'check_out': { 'code': -2, 'func': cart.check_out } 11 | } 12 | 13 | def user_input(txt): 14 | ''' used to prompting the user ''' 15 | return int(input(txt)) 16 | 17 | def display_cart_outline(): 18 | ''' display outline info ''' 19 | size, price = cart.outline() 20 | check_out_code = codes['check_out']['code'] 21 | view_cart_code = codes['view_cart']['code'] 22 | msg = 'Check-out: {}\nView cart: {}'.format(check_out_code, view_cart_code) 23 | print('\nItems: {}\nTotal: ${}\n{}'.format(size, price, msg)) 24 | 25 | def display_items(cat_id): 26 | ''' display a list of item in the given category ''' 27 | cart.clear_scrn() 28 | print('\n\t# ----- {} ----- #\n'.format(db[cat_id]['name'].title())) 29 | print('\n ID \t\t\t\t Product($)\n') 30 | items = db[cat_id]['items'] 31 | 32 | # display items 33 | for item_id in items: 34 | item = items[item_id] 35 | item_name = item['name'] 36 | item_price = item['price'] 37 | print(' {} \t\t\t\t {}(${})'.format(item_id, item_name.title(), item_price)) 38 | 39 | def select_item(cat_id): 40 | ''' display a list of item in the given category & prompt user ''' 41 | while True: 42 | display_items(cat_id) 43 | display_cart_outline() 44 | print('Main menu: 99') 45 | if _user_input(db[cat_id]) == -1:break 46 | 47 | def display_categories(): 48 | ''' display main menu ''' 49 | cart.clear_scrn() 50 | print('\n\t# ----- Categories ----- #') 51 | print('\n ID \t\t\t\t Category\n') 52 | 53 | # display categories 54 | for cat_id in db: 55 | category = db[cat_id]['name'].title() 56 | print(' {} \t\t\t\t {}'.format(cat_id, category)) 57 | 58 | def select_category(): 59 | ''' display main menu & prompt user ''' 60 | while True: 61 | display_categories() 62 | display_cart_outline() 63 | if _user_input() == -1: 64 | break 65 | 66 | def _user_input(category=False): 67 | try: 68 | if category: 69 | txt = '[-] Select an item: ' 70 | else: 71 | txt = '[+] Select a category: ' 72 | chosen_id = user_input(txt) 73 | except KeyboardInterrupt: 74 | cart.check_out() 75 | return -1 76 | except: 77 | pass 78 | 79 | if category: 80 | if chosen_id == 99: 81 | select_category() 82 | pass 83 | else: 84 | items = category['items'] 85 | if chosen_id in items: 86 | cart.add(items[chosen_id]) 87 | else: 88 | if chosen_id in db: 89 | if select_item(chosen_id) == -1: 90 | cart.check_out() 91 | 92 | if chosen_id in [codes[_]['code'] for _ in codes]: 93 | for item in codes: 94 | if codes[item]['code'] == chosen_id: 95 | func = codes[item]['func'] 96 | break 97 | func() 98 | 99 | if __name__ == '__main__': 100 | select_category() --------------------------------------------------------------------------------