*** shmohamud has quit (Remote host closed the connection) | 00:56 | |
*** shmohamud has quit (Ping timeout: 480 seconds) | 03:05 | |
*** shmohamud has quit (Ping timeout: 480 seconds) | 05:53 | |
*** jelkner has quit (Quit: Leaving) | 12:03 | |
*** shmohamud has quit (Remote host closed the connection) | 20:03 | |
shmohamud | scooper | 20:03 |
---|---|---|
scooper | Hello shohamud | 20:03 |
scooper | I m glad to see you again... | 20:03 |
shmohamud | Hello. Good to see you. I got your email. | 20:04 |
shmohamud | Is it 8:30PM in Monrovia now? | 20:04 |
scooper | no | 20:04 |
shmohamud | I thought that was in two hours, I'm still technically at work | 20:04 |
scooper | it 8:05pm | 20:04 |
scooper | ok I understand... should I stick around or reschedule again??? | 20:05 |
shmohamud | Are you available at 9:30PM? | 20:05 |
scooper | hmmm might be deep in deep by then.... | 20:05 |
shmohamud | Work is moving slow today so we can have a quick session if you're not available later | 20:05 |
scooper | Shanun | 20:06 |
scooper | I need a fixed timing from you that will not interrupt your woking time.. | 20:06 |
shmohamud | 9:30PM your time would be good | 20:07 |
scooper | Ok I accept it | 20:07 |
shmohamud | I mistakenly said 8:30PM your time, I thought it was a 4 hour time difference | 20:07 |
shmohamud | There's a 5 hour time difference | 20:08 |
scooper | ok I will wait around... | 20:08 |
shmohamud | Ok, you will be free at 9:30PM today? | 20:08 |
scooper | what are we learning today???? by 9:30pm | 20:08 |
scooper | I will wait for you.... still that time... | 20:09 |
shmohamud | Ok. We will be doing the fundamentals. Making sure you can declare functions, variables, loops and conditional logic | 20:09 |
shmohamud | Review that before we meet :) See you at 9:30 | 20:09 |
scooper | javascript or python?? | 20:10 |
shmohamud | Python | 20:10 |
scooper | ok | 20:10 |
shmohamud | We're focused on the PCEP now | 20:10 |
scooper | sure that is what Jeff said.... | 20:10 |
shmohamud | +1 | 20:11 |
*** scooper has quit (Ping timeout: 480 seconds) | 21:00 | |
shmohamud | Hi Scooper | 21:26 |
sysadmin_ | yes | 21:35 |
shmohamud | Hi Scooper | 21:35 |
scooper | yes | 21:35 |
scooper | Hello Shanun | 21:35 |
shmohamud | I looked at the PCEP curriculum | 21:35 |
shmohamud | It includes questions about how computers work in general | 21:35 |
scooper | OK I m listening Shanun | 21:36 |
shmohamud | Do you know the difference between interpreted and compiled languages | 21:36 |
scooper | yes but not in depth | 21:37 |
shmohamud | explain the difference for me | 21:37 |
scooper | A compiler translates entire code to machine language before execution | 21:39 |
scooper | while an interpreter translates and executes code line by line. | 21:39 |
shmohamud | perfect | 21:39 |
shmohamud | usually, is Python interpreted or compiled? | 21:39 |
scooper | compiler | 21:40 |
shmohamud | no, Python is usually interpreted | 21:41 |
scooper | not interpeter | 21:41 |
scooper | interpreted not compiler | 21:41 |
shmohamud | yes | 21:43 |
shmohamud | can you declare a dict for me with keys as "names" and values as "PCEP Scores" ranging from 1-100 | 21:43 |
shmohamud | ? | 21:43 |
scooper | yes | 21:44 |
shmohamud | lets see it | 21:44 |
scooper | my_dict = {"names": "PCEP Score", "names":1-100} | 21:52 |
scooper | print(my_dict) | 21:52 |
scooper | please rephrase the question | 21:52 |
shmohamud | Instead of keys "names" I want each of the keys to be a name like "Spencer" , "Freena" , "Shallon" | 21:53 |
shmohamud | For the values, I wont them each to be an integer value, like 88, 95, 99\ | 21:53 |
shmohamud | does that make sense? | 21:54 |
scooper | yes | 21:54 |
shmohamud | ok let's see it | 21:54 |
shmohamud | I'll be right back | 21:57 |
shmohamud | 5m | 21:57 |
scooper | ok | 21:57 |
scooper | my_dict = { | 21:59 |
scooper | "Spencer": 87, | 21:59 |
scooper | "Freena": 99, | 21:59 |
scooper | "Shallon": 100, | 21:59 |
scooper | "Shanun": 97, | 21:59 |
scooper | } | 21:59 |
scooper | print(my_dict) | 21:59 |
shmohamud | perfect | 22:03 |
shmohamud | Do you know how to use the .items dict method? | 22:03 |
scooper | you mean print a particular value | 22:04 |
scooper | from a dictionary ??? | 22:04 |
shmohamud | We'll get to that. I'm wondering do you know how to use the .items on a dict - what is the return value of .items()? | 22:08 |
scooper | please rephase the question again... | 22:10 |
scooper | I m grabbing what you trying to say... | 22:10 |
shmohamud | Ok, when you use .items(dict) on a dictionary, what is the return value - is it the keys, the values, tuples or lists? | 22:11 |
scooper | it's a tuple.... | 22:13 |
scooper | I think I m understanding what you I ask me to do.... | 22:13 |
shmohamud | perfect, it's a tuple | 22:14 |
shmohamud | it returns tuples | 22:14 |
shmohamud | What is the base of binary? | 22:15 |
shmohamud | 1,2,4 or 8? | 22:15 |
scooper | hmmm not to my knowledge.... But I think this is what you where asking for first my_dict = { | 22:17 |
scooper | "Spencer": 87, | 22:17 |
scooper | "Freena": 99, | 22:17 |
scooper | "Shallon": 100, | 22:17 |
scooper | "Shanun": 97, | 22:17 |
scooper | } | 22:17 |
scooper | print(my_dict) | 22:17 |
scooper | new_dict = my_dict.items() | 22:17 |
scooper | print(new_dict) | 22:17 |
shmohamud | that's good. | 22:18 |
shmohamud | Binary is base 2. It's a series of 1s and 0s. That's what all computer code is compiled down to. | 22:19 |
shmohamud | Octal is base 8. It has digits from 0 to 7. | 22:19 |
scooper | I know | 22:19 |
shmohamud | ok, good | 22:19 |
scooper | but the question was asking me for the binary of 1,2,4 and 8 right?? | 22:20 |
shmohamud | No no, I wasn't asking that. I was asking what is the base of binary: Base 2, Base 4, Base 1 or Base 8 | 22:20 |
scooper | Are you still there Shmohamud?? | 22:24 |
shmohamud | yes | 22:24 |
shmohamud | do you see what I was trying to ask now? | 22:24 |
scooper | yes | 22:25 |
shmohamud | Ok, good. They might ask you questions like that on the PCEP | 22:25 |
shmohamud | So now, can you write me a function named hello_world that takes in a parameter of "name" and prints out "Hello {name}" | 22:26 |
scooper | like you said to me before programming require thinking before writing code... | 22:27 |
shmohamud | Indeed it does. | 22:28 |
shmohamud | Can you write me that function? | 22:28 |
scooper | That mean when the function is call it should print difference name right | 22:28 |
scooper | yes | 22:28 |
shmohamud | Yes, depending on what name is passed into it | 22:29 |
scooper | def hello_world(name): | 22:30 |
scooper | print(f"Hello {name}") | 22:30 |
scooper | hello_world("Sahnun") | 22:30 |
shmohamud | nice. does that work as expected? | 22:33 |
scooper | yes | 22:33 |
shmohamud | perfect | 22:33 |
shmohamud | What are the different data types available in Python? | 22:34 |
scooper | you can execute and see | 22:34 |
scooper | string, list, tuple, dictionary, set | 22:34 |
scooper | but I have gone deep in to set yet | 22:34 |
scooper | but I haven't gone deep in to set yet | 22:35 |
shmohamud | ok that's a good start. | 22:35 |
scooper | which one is a good start Sahnun?? | 22:36 |
shmohamud | there's int, float, complex, bool, bytearray, bytes, memoryview, NoneType, range | 22:36 |
shmohamud | The ones you've listed above are a good start, but there are more data types you should commit to memory | 22:36 |
scooper | I have work with float but not familiar with the rest in just listed.... | 22:36 |
scooper | * you just listed | 22:37 |
shmohamud | That's ok, this is just to open your mind to their existence. We will dive deeper into the different data types later. | 22:37 |
scooper | bool is it boolean | 22:38 |
scooper | ?? | 22:38 |
shmohamud | Yes, it's a boolean | 22:38 |
scooper | Oh I have work with it too | 22:38 |
shmohamud | Ok, good | 22:38 |
scooper | Are we still moving forward Sahnun | 22:40 |
scooper | ?? | 22:40 |
shmohamud | yes | 22:40 |
scooper | OK I m here | 22:41 |
shmohamud | I want you to declare a variable called "counter" | 22:41 |
shmohamud | set it equal to 0. | 22:41 |
shmohamud | Then, write a while loop that increments it by 1 each time. | 22:41 |
shmohamud | If the number is divisible by 3 I want you to print "Fizz" | 22:42 |
shmohamud | if the number is divisible by 5 I want you to print "Buzz" | 22:42 |
shmohamud | If the number is divisible by 3 AND 5 I want you to print "FizzBuzz" | 22:42 |
shmohamud | Can you do that for me? | 22:42 |
scooper | yes I can do that for us...... | 22:43 |
scooper | Sahnun | 22:44 |
scooper | The program taking input from the user?? | 22:44 |
shmohamud | no | 22:44 |
shmohamud | no need for input from the user | 22:45 |
scooper | ok | 22:45 |
shmohamud | This is a common interview question so if you even get close that's very good. I was given this question during one of my earlier interviews for Junior Developer position. | 22:50 |
scooper | counter = 0 | 22:53 |
scooper | while counter < 50: | 22:53 |
scooper | counter = counter + 1 | 22:53 |
scooper | if counter % 3 == 0 and counter % 5 == 0: | 22:53 |
scooper | print("FizzBuzz") | 22:53 |
scooper | elif counter % 5 == 0: | 22:53 |
scooper | print("Buzz") | 22:53 |
scooper | 22:53 | |
scooper | elif counter % 3 == 0: | 22:53 |
scooper | print("Fizz") | 22:53 |
scooper | else: | 22:53 |
scooper | print(counter) | 22:53 |
shmohamud | can you change it to execute if counter is less than 100? | 22:54 |
scooper | sure | 22:54 |
shmohamud | so far, looks great! | 22:54 |
shmohamud | have you tested it yet? | 22:54 |
scooper | yes | 22:54 |
shmohamud | way to go man, you're going to crack this PCEP! | 22:55 |
scooper | I hope so too | 22:55 |
shmohamud | there's shorthand syntax for writing counter = counter + 1 | 22:56 |
shmohamud | do you know how to do that in shorthand? | 22:56 |
scooper | counter = 0 | 22:57 |
scooper | while counter < 100: | 22:57 |
scooper | counter = counter + 1 | 22:57 |
scooper | if counter % 3 == 0 and counter % 5 == 0: | 22:57 |
scooper | print("FizzBuzz") | 22:57 |
scooper | elif counter % 3 se: | 22:57 |
scooper | print(counter) | 22:57 |
scooper | counter = 0 | 22:57 |
scooper | while counter < 100: | 22:57 |
scooper | counter = counter + 1 | 22:58 |
scooper | if counter % 3 == 0 and counter % 5 == 0: | 22:58 |
scooper | print("FizzBuzz") | 22:58 |
scooper | elif counter % 3 == 0: | 22:58 |
scooper | print("Fizz") | 22:58 |
scooper | elif counter % 5 == 0: | 22:58 |
scooper | print("Buzz") | 22:58 |
scooper | else: | 22:58 |
scooper | print(counter) | 22:58 |
scooper | counter = 0 | 22:58 |
scooper | while counter < 50: | 22:58 |
scooper | counter = counter + 1 | 22:58 |
scooper | if counter % 3 == 0 and counter % 5 == 0: | 22:58 |
scooper | print("FizzBuzz") | 22:58 |
scooper | elif counter % 5 == 0: | 22:58 |
scooper | print("Buzz") | 22:58 |
scooper | 22:58 | |
scooper | elif counter % 3 == 0: | 22:58 |
scooper | print("Fizz") | 22:58 |
scooper | else: | 22:58 |
scooper | print(counter) | 22:58 |
scooper | yes it's | 22:58 |
scooper | counter = 0 | 22:59 |
scooper | while counter < 100: | 22:59 |
scooper | counter = counter + 1 | 22:59 |
scooper | if counter % 3 == 0 and counter % 5 == 0: | 22:59 |
scooper | print("FizzBuzz") | 22:59 |
scooper | elif counter % 3 == 0: | 22:59 |
scooper | print("Fizz") | 22:59 |
scooper | elif counter % 5 == 0: | 22:59 |
scooper | print("Buzz") | 22:59 |
scooper | else: | 22:59 |
scooper | print(counter) | 22:59 |
scooper | counter = 0 | 22:59 |
scooper | while counter < 50: | 22:59 |
scooper | counter += 1 | 22:59 |
scooper | if counter % 3 == 0 and counter % 5 == 0: | 22:59 |
scooper | print("FizzBuzz") | 22:59 |
scooper | elif counter % 5 == 0: | 22:59 |
scooper | print("Buzz") | 22:59 |
scooper | 22:59 | |
scooper | elif counter % 3 == 0: | 22:59 |
scooper | print("Fizz") | 22:59 |
scooper | else: | 22:59 |
scooper | print(counter) | 22:59 |
shmohamud | excellent. Great job man, you've come a long way since the last time we programmed together!! | 23:00 |
scooper | sorry I had paste twice | 23:00 |
scooper | Thanks Shmohamud.... | 23:00 |
shmohamud | you've been practicing your Python the last month? | 23:01 |
scooper | I mentioned your name and Jeff Elkner in Challenge I start doing today in my github | 23:01 |
scooper | yes with javascript too | 23:02 |
shmohamud | What challenge have you started? Can you share me the link to the repo? | 23:02 |
scooper | but my mentor advise I should stop js and full on python fully | 23:02 |
scooper | sure | 23:02 |
shmohamud | is your mentor Jeff? | 23:03 |
shmohamud | I agree, you should focus 100% on Python | 23:03 |
shmohamud | Javascript will come easy after. | 23:03 |
scooper | Yes Jeff told me I can do this.... | 23:04 |
scooper | When you visited Liberia.... | 23:05 |
scooper | When he visited Liberia... | 23:05 |
scooper | I will share the link with you later github account is taking to long to read..... | 23:06 |
scooper | Sahnun is 11:00pm on my end now | 23:07 |
scooper | can I go and take a nap???? | 23:08 |
shmohamud | Ok, sounds good. Well, you did fantastic today. I'm happy with your progress, and you should be too. For homework, I want you to research the difference between compiled and interpreted languages. Also, if there's time, look into binary an octal notation | 23:08 |
shmohamud | Absolutely, get some sleep, you earned it. Tomorrow same time? | 23:08 |
scooper | OK, thanks for always being there...... | 23:10 |
*** scooper has quit (Quit: Leaving) | 23:10 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!