├── Chap01 └── 01_03.py ├── Chap02 ├── 02_07_end.py ├── 02_07_begin.py ├── Troubleshooting Installation Issues.docx ├── 02_09.py └── 02_01.py ├── Software Lingo.pdf ├── Chap03 ├── 03_08_solution ├── 03_01_end.py ├── 03_05_begin.py ├── 03_05_end.py ├── 03_06_begin.py ├── 03_02_end.py ├── 03_06_end.py └── 03_07.py ├── Practice Exercises.pdf ├── Chap05 ├── 05_02_begin.py ├── 05_02_end.py ├── 05_01_begin.py ├── 05_03_begin.py ├── 05_04_begin.py ├── 05_01_end.py ├── 05_07.py ├── 05_04_end.py └── 05_03_end.py ├── Troubleshooting Installation Issues.pdf ├── Chap04 ├── 04_03_begin.py ├── 04_03_end.py ├── Boolean Expressions and Relational Operators Practice Worksheet.docx ├── 04_06.py └── 04_02.py ├── Boolean Expressions and Relational Operators Practice Worksheet.pdf └── README.md /Chap01/01_03.py: -------------------------------------------------------------------------------- 1 | print("Hello world!") -------------------------------------------------------------------------------- /Chap02/02_07_end.py: -------------------------------------------------------------------------------- 1 | print("Hello world!") 2 | 3 | print("Goodbye world!") -------------------------------------------------------------------------------- /Chap02/02_07_begin.py: -------------------------------------------------------------------------------- 1 | print("Hello world!") 2 | 3 | print("Goodbye world!") -------------------------------------------------------------------------------- /Software Lingo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghareebghareeb/Fundamentals/HEAD/Software Lingo.pdf -------------------------------------------------------------------------------- /Chap03/03_08_solution: -------------------------------------------------------------------------------- 1 | Challenge 1: 2 | This is going to be tricky ;) 3 | 2**3 = 8 4 | Challenge complete! -------------------------------------------------------------------------------- /Practice Exercises.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghareebghareeb/Fundamentals/HEAD/Practice Exercises.pdf -------------------------------------------------------------------------------- /Chap05/05_02_begin.py: -------------------------------------------------------------------------------- 1 | def say_hello(): 2 | print("Hello, friends!") 3 | 4 | say_hello() 5 | say_hello() 6 | say_hello() -------------------------------------------------------------------------------- /Chap05/05_02_end.py: -------------------------------------------------------------------------------- 1 | def say_hello(): 2 | print("Hello, friends!") 3 | 4 | say_hello() 5 | say_hello() 6 | say_hello() 7 | -------------------------------------------------------------------------------- /Troubleshooting Installation Issues.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghareebghareeb/Fundamentals/HEAD/Troubleshooting Installation Issues.pdf -------------------------------------------------------------------------------- /Chap02/Troubleshooting Installation Issues.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghareebghareeb/Fundamentals/HEAD/Chap02/Troubleshooting Installation Issues.docx -------------------------------------------------------------------------------- /Chap02/02_09.py: -------------------------------------------------------------------------------- 1 | # syntax error 2 | print("Hello world") 3 | 4 | # runtime error 5 | 10 * (2/0) 6 | 7 | # semantic error 8 | name = "Alice" 9 | print("Hello name") -------------------------------------------------------------------------------- /Chap03/03_01_end.py: -------------------------------------------------------------------------------- 1 | age = 36 2 | print(age) 3 | print(type(age)) 4 | 5 | email_address = "john.doe@me.com" 6 | print(email_address) 7 | print(type(email_address)) 8 | -------------------------------------------------------------------------------- /Chap04/04_03_begin.py: -------------------------------------------------------------------------------- 1 | plant = "Cacti" 2 | 3 | if plant == "Cacti": 4 | print(plant, "don't need a lot of water") 5 | else: 6 | print(plant, "love water") 7 | 8 | print("Thanks!") 9 | -------------------------------------------------------------------------------- /Chap04/04_03_end.py: -------------------------------------------------------------------------------- 1 | plant = "Irises" 2 | 3 | if plant == "Cacti": 4 | print(plant, "don't need a lot of water") 5 | else: 6 | print(plant, "love water") 7 | 8 | print("Thanks!") 9 | -------------------------------------------------------------------------------- /Chap05/05_01_begin.py: -------------------------------------------------------------------------------- 1 | print("~~~ The Shimmy ~~~") 2 | 3 | print("Take one step to the right and stomp.") 4 | print("Take one step to the left and stomp.") 5 | print("Shake those hips!") 6 | -------------------------------------------------------------------------------- /Boolean Expressions and Relational Operators Practice Worksheet.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghareebghareeb/Fundamentals/HEAD/Boolean Expressions and Relational Operators Practice Worksheet.pdf -------------------------------------------------------------------------------- /Chap04/Boolean Expressions and Relational Operators Practice Worksheet.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghareebghareeb/Fundamentals/HEAD/Chap04/Boolean Expressions and Relational Operators Practice Worksheet.docx -------------------------------------------------------------------------------- /Chap04/04_06.py: -------------------------------------------------------------------------------- 1 | guess = input("What's my favorite food? ") 2 | 3 | if guess == "cookies": 4 | print("Yep! So amazing!") 5 | else: 6 | print("Yuck! That’s not it!") 7 | 8 | print("Thanks for playing!") 9 | -------------------------------------------------------------------------------- /Chap02/02_01.py: -------------------------------------------------------------------------------- 1 | name = input("Hi, what's your name? ") 2 | age = int(input("How old are you? ")) 3 | 4 | if (age < 13): 5 | print("You're too young to register", name) 6 | else: 7 | print("Feel free to join", name) -------------------------------------------------------------------------------- /Chap05/05_03_begin.py: -------------------------------------------------------------------------------- 1 | def wash_car(): 2 | print("Wash with tri-color foam") 3 | print("Rinse twice") 4 | print("Dry with large blow dryer") 5 | 6 | print("Wash with white foam") 7 | print("Rinse once") 8 | print("Air dry") 9 | -------------------------------------------------------------------------------- /Chap05/05_04_begin.py: -------------------------------------------------------------------------------- 1 | def withdraw_money(current_balance, amount): 2 | if (current_balance >= amount): 3 | current_balance = current_balance - amount 4 | print("The balance is", current_balance) 5 | 6 | withdraw_money(100, 80) 7 | -------------------------------------------------------------------------------- /Chap05/05_01_end.py: -------------------------------------------------------------------------------- 1 | print("~~~ The Shimmy ~~~") 2 | 3 | def shimmy(): 4 | print("Take one step to the right and stomp.") 5 | print("Take one step to the left and stomp.") 6 | print("Shake those hips!") 7 | 8 | shimmy() 9 | shimmy() 10 | shimmy() 11 | -------------------------------------------------------------------------------- /Chap03/03_05_begin.py: -------------------------------------------------------------------------------- 1 | print("Hi!") 2 | name = input("What's your name? ") 3 | print("It's nice to meet you,", name) 4 | answer = input("Are you enjoying the course? ") 5 | if answer == "Yes": 6 | print("That's good to hear!") 7 | else: 8 | print("Oh no! That makes me sad!") -------------------------------------------------------------------------------- /Chap04/04_02.py: -------------------------------------------------------------------------------- 1 | print("Hi!") 2 | 3 | name = input("What's your name? ") 4 | print("It's nice to meet you,", name) 5 | 6 | answer = input("Are you enjoying the course? ") 7 | 8 | if answer == "Yes": 9 | print("That's good to hear!") 10 | 11 | print("Final statement") 12 | -------------------------------------------------------------------------------- /Chap05/05_07.py: -------------------------------------------------------------------------------- 1 | # Prints out the name of a favorite city 2 | def favorite_city(name): 3 | print("One of my favorite cities is", name) 4 | 5 | favorite_city("Santa Barbara, California") 6 | favorite_city("Asheville, North Carolina") 7 | favorite_city("Amsterdam, The Netherlands") 8 | -------------------------------------------------------------------------------- /Chap03/03_05_end.py: -------------------------------------------------------------------------------- 1 | print("Hi!") 2 | name = input("What's your name? ") 3 | 4 | print("It's nice to meet you,", name) 5 | answer = input("Are you enjoying the course? ") 6 | 7 | if answer == "Yes": 8 | print("That's good to hear!") 9 | else: 10 | print("Oh no! That makes me sad!") -------------------------------------------------------------------------------- /Chap03/03_06_begin.py: -------------------------------------------------------------------------------- 1 | 2 | print("Hi!") 3 | 4 | name = input("What's your name? ") 5 | print("It's nice to meet you,", name) 6 | 7 | answer = input("Are you enjoying the course? ") 8 | 9 | if answer == "Yes": 10 | print("That's good to hear!") 11 | else: 12 | print("Oh no! That makes me sad!") -------------------------------------------------------------------------------- /Chap03/03_02_end.py: -------------------------------------------------------------------------------- 1 | cookies = 'Sugar' 2 | print(cookies) 3 | print(type(cookies)) 4 | 5 | cookies = 1 6 | print(cookies) 7 | print(type(cookies)) 8 | 9 | Cookies = 3 10 | print(Cookies) 11 | print(cookies) 12 | 13 | first_name = "Jeff" 14 | print(first_name) 15 | 16 | first_Name = "Sara" 17 | print(first_name) 18 | -------------------------------------------------------------------------------- /Chap03/03_06_end.py: -------------------------------------------------------------------------------- 1 | # Greet the user 2 | print("Hi!") 3 | 4 | name = input("What's your name? ") # asks the user their name 5 | print("It's nice to meet you,", name) 6 | 7 | # answer = input("Are you enjoying the course? ") 8 | 9 | # if answer == "Yes": 10 | # print("That's good to hear!") 11 | # else: 12 | # print("Oh no! That makes me sad!") -------------------------------------------------------------------------------- /Chap05/05_04_end.py: -------------------------------------------------------------------------------- 1 | def withdraw_money(current_balance, amount): 2 | if (current_balance >= amount): 3 | current_balance = current_balance - amount 4 | return current_balance 5 | 6 | balance = withdraw_money(100, 80) 7 | 8 | if (balance <= 50): 9 | print("We need to make a deposit") 10 | else: 11 | print("Nothing to see here!") 12 | -------------------------------------------------------------------------------- /Chap05/05_03_end.py: -------------------------------------------------------------------------------- 1 | def wash_car(amount_paid): 2 | if (amount_paid == 12): 3 | print("Wash with tri-color foam") 4 | print("Rinse twice") 5 | print("Dry with large blow dryer") 6 | 7 | if (amount_paid == 6): 8 | print("Wash with white foam") 9 | print("Rinse once") 10 | print("Air dry") 11 | 12 | wash_car(6) -------------------------------------------------------------------------------- /Chap03/03_07.py: -------------------------------------------------------------------------------- 1 | print("Challenge 1:") 2 | 3 | # A message for the user 4 | message = "This is going to be tricky ;)" 5 | Message = "Very tricky!" 6 | print(message) # show the message on the screen 7 | 8 | # Perform mathematical operations 9 | result = 2**3 10 | print("2**3 =", result) 11 | result = 5 - 3 12 | #print("5 - 3 =", result) 13 | 14 | print("Challenge complete!") -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | أهلا بيك في كورس تعلم أساسيات البرمجة للمبتدئين، أنا غريب الشيخ ومبسوط إنك بتتفرج على الكورس ده. ❤ 2 | الريبو ده هتلاقي فيه كل الفايلز اللي بنشتغل عليها خلال الكورس، فمهم جدا تنزل الملفات دي علشان هتحتاجها 😁 3 |