IRC log of #novawebdev for Tuesday, 2023-12-05

*** 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
shmohamudscooper20:03
scooperHello shohamud20:03
scooperI m glad to see you again...20:03
shmohamudHello. Good to see you. I got your email.20:04
shmohamudIs it 8:30PM in Monrovia now?20:04
scooperno20:04
shmohamudI thought that was in two hours, I'm still technically at work20:04
scooperit 8:05pm20:04
scooperok I understand... should I stick around or reschedule again???20:05
shmohamudAre you available at 9:30PM?20:05
scooperhmmm might be deep in deep by then....20:05
shmohamudWork is moving slow today so we can have a quick session if you're not available later20:05
scooperShanun20:06
scooperI need a fixed timing from you that will not interrupt your woking time..20:06
shmohamud9:30PM your time would be good20:07
scooperOk I accept it20:07
shmohamudI mistakenly said 8:30PM your time, I thought it was a 4 hour time difference20:07
shmohamudThere's a 5 hour time difference20:08
scooperok I will wait around...20:08
shmohamudOk, you will be free at 9:30PM today?20:08
scooperwhat are we learning today???? by 9:30pm 20:08
scooperI will wait for you.... still that time...20:09
shmohamudOk. We will be doing the fundamentals. Making sure you can declare functions, variables, loops and conditional logic20:09
shmohamudReview that before we meet :) See you at 9:3020:09
scooperjavascript or python??20:10
shmohamudPython20:10
scooperok20:10
shmohamudWe're focused on the PCEP now20:10
scoopersure that is what Jeff said....20:10
shmohamud+120:11
*** scooper has quit (Ping timeout: 480 seconds)21:00
shmohamudHi Scooper21:26
sysadmin_yes21:35
shmohamudHi Scooper21:35
scooperyes21:35
scooperHello Shanun21:35
shmohamudI looked at the PCEP curriculum21:35
shmohamudIt includes questions about how computers work in general21:35
scooperOK I m listening Shanun21:36
shmohamudDo you know the difference between interpreted and compiled languages21:36
scooperyes but not in depth 21:37
shmohamudexplain the difference for me21:37
scooperA compiler translates entire code to machine language before execution21:39
scooperwhile an interpreter translates and executes code line by line.21:39
shmohamudperfect21:39
shmohamudusually, is Python interpreted or compiled?21:39
scoopercompiler21:40
shmohamudno, Python is usually interpreted21:41
scoopernot interpeter21:41
scooperinterpreted not compiler21:41
shmohamudyes21:43
shmohamudcan you declare a dict for me with keys as "names" and values as "PCEP Scores" ranging from 1-10021:43
shmohamud?21:43
scooperyes21:44
shmohamudlets see it21:44
scoopermy_dict = {"names": "PCEP Score", "names":1-100}21:52
scooperprint(my_dict)21:52
scooperplease rephrase the question21:52
shmohamudInstead of keys "names" I want each of the keys to be a name like "Spencer" , "Freena" , "Shallon"21:53
shmohamudFor the values, I wont them each to be an integer value, like 88, 95, 99\21:53
shmohamuddoes that make sense?21:54
scooperyes21:54
shmohamudok let's see it21:54
shmohamudI'll be right back21:57
shmohamud5m21:57
scooperok21:57
scoopermy_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
scooperprint(my_dict)21:59
shmohamudperfect22:03
shmohamudDo you know how to use the .items dict method?22:03
scooperyou mean print a particular value22:04
scooperfrom a dictionary ???22:04
shmohamudWe'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
scooperplease rephase the question again...22:10
scooperI m grabbing what you trying to say...22:10
shmohamudOk, when you use .items(dict) on a dictionary, what is the return value - is it the keys, the values, tuples or lists?22:11
scooperit's a tuple....22:13
scooperI think I m understanding what you I ask me to do....22:13
shmohamudperfect, it's a tuple22:14
shmohamudit returns tuples22:14
shmohamudWhat is the base of binary?22:15
shmohamud1,2,4 or 8?22:15
scooperhmmm 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
scooperprint(my_dict)22:17
scoopernew_dict = my_dict.items()22:17
scooperprint(new_dict)22:17
shmohamudthat's good. 22:18
shmohamudBinary is base 2. It's a series of 1s and 0s. That's what all computer code is compiled down to. 22:19
shmohamudOctal is base 8. It has digits from 0 to 7.22:19
scooperI know22:19
shmohamudok, good22:19
scooperbut the question was asking me for the binary of 1,2,4 and 8 right??22:20
shmohamudNo no, I wasn't asking that. I was asking what is the base of binary: Base 2, Base 4, Base 1 or Base 822:20
scooperAre you still there Shmohamud??22:24
shmohamudyes22:24
shmohamuddo you see what I was trying to ask now?22:24
scooperyes22:25
shmohamudOk, good. They might ask you questions like that on the PCEP22:25
shmohamudSo now, can you write me a function named hello_world that takes in a parameter of "name" and prints out "Hello {name}"22:26
scooperlike you said to me before programming require thinking before writing code...22:27
shmohamudIndeed it does. 22:28
shmohamudCan you write me that function?22:28
scooperThat mean when the function is call it should print difference name right22:28
scooperyes22:28
shmohamudYes, depending on what name is passed into it22:29
scooperdef hello_world(name):22:30
scooper    print(f"Hello {name}")22:30
scooperhello_world("Sahnun")22:30
shmohamudnice. does that work as expected?22:33
scooperyes22:33
shmohamudperfect22:33
shmohamudWhat are the different data types available in Python?22:34
scooperyou can execute and see22:34
scooperstring, list, tuple, dictionary, set22:34
scooperbut I have gone deep in to set yet22:34
scooperbut I haven't gone deep in to set yet22:35
shmohamudok that's a good start. 22:35
scooperwhich one is a good start Sahnun??22:36
shmohamudthere's int, float, complex, bool, bytearray, bytes, memoryview, NoneType, range22:36
shmohamudThe ones you've listed above are a good start, but there are more data types you should commit to memory22:36
scooperI have work with float but not familiar with the rest in just listed....22:36
scooper* you just listed22:37
shmohamudThat's ok, this is just to open your mind to their existence. We will dive deeper into the different data types later.22:37
scooperbool is it boolean22:38
scooper??22:38
shmohamudYes, it's a boolean22:38
scooperOh I have work with it too22:38
shmohamudOk, good22:38
scooperAre we still moving forward Sahnun22:40
scooper??22:40
shmohamudyes22:40
scooperOK I m here22:41
shmohamudI want you to declare a variable called "counter"22:41
shmohamudset it equal to 0.22:41
shmohamudThen, write a while loop that increments it by 1 each time.22:41
shmohamudIf the number is divisible by 3 I want you to print "Fizz"22:42
shmohamudif the number is divisible by 5 I want you to print "Buzz"22:42
shmohamudIf the number is divisible by 3 AND 5 I want you to print "FizzBuzz"22:42
shmohamudCan you do that for me?22:42
scooperyes I can do that for us......22:43
scooperSahnun22:44
scooperThe program taking input from the user??22:44
shmohamudno22:44
shmohamudno need for input from the user22:45
scooperok22:45
shmohamudThis 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
scoopercounter = 022:53
scooperwhile counter < 50:22:53
scooper    counter = counter + 122: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
shmohamudcan you change it to execute if counter is less than 100?22:54
scoopersure22:54
shmohamudso far, looks great!22:54
shmohamudhave you tested it yet?22:54
scooperyes22:54
shmohamudway to go man, you're going to crack this PCEP!22:55
scooperI hope so too22:55
shmohamudthere's shorthand syntax for writing counter = counter + 122:56
shmohamuddo you know how to do that in shorthand?22:56
scoopercounter = 022:57
scooperwhile counter < 100:22:57
scooper    counter = counter + 122: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
scoopercounter = 022:57
scooperwhile counter < 100:22:57
scooper    counter = counter + 122: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
scoopercounter = 022:58
scooperwhile counter < 50:22:58
scooper    counter = counter + 122: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
scooperyes it's22:58
scoopercounter = 022:59
scooperwhile counter < 100:22:59
scooper    counter = counter + 122: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
scoopercounter = 022:59
scooperwhile counter < 50:22:59
scooper    counter += 122: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
shmohamudexcellent. Great job man, you've come a long way since the last time we programmed together!!23:00
scoopersorry I had paste twice23:00
scooperThanks Shmohamud....23:00
shmohamudyou've been practicing your Python the last month?23:01
scooperI mentioned your name and Jeff Elkner in Challenge I start doing  today in my github23:01
scooperyes with javascript too23:02
shmohamudWhat challenge have you started? Can you share me the link to the repo?23:02
scooperbut my mentor advise I should stop js and full on python fully23:02
scoopersure23:02
shmohamudis your mentor Jeff? 23:03
shmohamudI agree, you should focus 100% on Python23:03
shmohamudJavascript will come easy after.23:03
scooperYes Jeff told me I can do this....23:04
scooperWhen you visited Liberia....23:05
scooperWhen he visited Liberia...23:05
scooperI will share the link with you later github account is taking to long to read.....23:06
scooperSahnun is 11:00pm on my end now23:07
scoopercan I go and take a nap????23:08
shmohamudOk, 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 notation23:08
shmohamudAbsolutely, get some sleep, you earned it. Tomorrow same time?23:08
scooperOK, 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/!