*** mulbah has quit (Remote host closed the connection) | 12:03 | |
shmohamud | good morning Mulbah | 12:41 |
---|---|---|
shmohamud | would you like to do some practice still? | 12:42 |
mulbah | Good morning shmohamud | 12:42 |
mulbah | yeah always really | 12:43 |
shmohamud | Ok, cool | 12:43 |
shmohamud | so do you know how to declare a variable in Python? | 12:43 |
mulbah | so what is the plain | 12:43 |
mulbah | yeah | 12:44 |
shmohamud | I'm going to ask you questions to see what your current skill level is | 12:44 |
shmohamud | Ok, declare me a list that has four names inside of it | 12:44 |
mulbah | okay | 12:47 |
shmohamud | name the list names | 12:47 |
shmohamud | when finished please paste the result here | 12:48 |
shmohamud | good day tboimah and dcommue | 12:49 |
tboimah | How are you shmohamud | 12:50 |
shmohamud | doing well, thanks for asking :) | 12:50 |
shmohamud | how're you? | 12:50 |
tboimah | I'm fine | 12:50 |
shmohamud | good good to hear | 12:51 |
tboimah | yeah | 12:51 |
shmohamud | are you trying the question too? | 12:51 |
tboimah | yeah let me try | 12:51 |
shmohamud | +1 | 12:51 |
shmohamud | dcommue - you there? | 12:52 |
shmohamud | good day scooper | 12:52 |
shmohamud | good day fkoikoi | 12:52 |
fkoikoi | Good morning shmohamud | 12:52 |
fkoikoi | How are you today? | 12:55 |
shmohamud | good good, thanks for asking | 12:55 |
shmohamud | how're you? | 12:55 |
shmohamud | mulbah and tboimah - how's it going with the question? | 12:56 |
tboimah | my_list = ["tboimah", "mulbah", "fkoikoi", "dcammue"] | 12:59 |
tboimah | print(my_list) | 12:59 |
tboimah | I'm i correct | 13:00 |
shmohamud | tboimah, that's correct | 13:01 |
tboimah | shmohamud are you there | 13:01 |
mulbah | names = [mulbah, paul, scooper, shmohamud] | 13:01 |
mulbah | for each_list in names: | 13:01 |
mulbah | print(each_list) | 13:01 |
shmohamud | mulbah, good job naming the variable properly. | 13:01 |
mulbah | am I correct too | 13:02 |
shmohamud | Does anyone see an error in mulbah's code? | 13:02 |
tboimah | yeah | 13:02 |
shmohamud | Good day scooper | 13:02 |
shmohamud | tboimah, what's the error? | 13:02 |
scooper | Good morning Shmohamud | 13:03 |
tboimah | he should have print names instead of each_list | 13:03 |
shmohamud | that's fine, I mean an error that will cause the code to throw an error | 13:03 |
shmohamud | anyone see it? | 13:03 |
scooper | Sorry to say I will not be active today due to a meeting I m attending by 1:00 | 13:03 |
tboimah | yeah it's the string | 13:03 |
scooper | Mean while did you saw the work I submitted???? | 13:04 |
shmohamud | I understand scooper, handle your business and i'll see you tomorrow | 13:04 |
shmohamud | Oh, I did not. Let me check now | 13:04 |
shmohamud | I see it, correct. Well done! | 13:05 |
shmohamud | mulbah, when declaring a variable, you must make sure that you use the proper data type | 13:06 |
shmohamud | Computers are dumb, people are smart. It needs us to be exact in what we tell it to do. | 13:06 |
scooper | OK Thanks I m leaving now........ | 13:07 |
mulbah | okay Sir | 13:07 |
mulbah | is there another question\ | 13:07 |
shmohamud | Strings are an important data type, and you create them by using quotation marks "" like that | 13:07 |
tboimah | Good morning Jeff | 13:08 |
shmohamud | For you guys (not fkoikoi) I want you to declare a variable called ages_dict and set it equal to key / value pairs that are names and ages | 13:08 |
mulbah | okay I understand | 13:08 |
shmohamud | Good morning Jeff | 13:09 |
mulbah | Good morning Jeff | 13:09 |
fkoikoi | Good Morning Jeff | 13:09 |
shmohamud | fkoikoi, I want you to declare a dict with three key / value pairs and then loop through printing the keys AND values of each | 13:09 |
svaye | Good morning Jeff | 13:09 |
dcammue | Good morning Jeff | 13:10 |
svaye | Good morning shmohamud | 13:10 |
fkoikoi | okay shmohamud | 13:10 |
shmohamud | good day svaye | 13:10 |
jelkner | Good afternoon mulbah, fkoikoi, svaye and dcammue | 13:10 |
jelkner | and good morning to you, shmohamud | 13:10 |
dcammue | How was your Night? | 13:11 |
svaye | Jeff are we meeting with Dr stephen today? | 13:12 |
fkoikoi | my_list = {"freena":"17", "tboimah":"18", "svaye":"16"} | 13:14 |
fkoikoi | for key in my_list: | 13:14 |
fkoikoi | print(key, my_list[key]) | 13:14 |
shmohamud | awesome, well done! Now, could you have named it better? | 13:15 |
tboimah | team_age = {"Thomas 18":"Mulbah 18", "fkoikoi 18",} | 13:15 |
jelkner | svaye, he hasn't responded | 13:16 |
jelkner | so i don't think so | 13:16 |
shmohamud | fkoikoi, once you answer that - I want you to point out wha the issue with tboimah's close attempt is. | 13:16 |
shmohamud | You're close tboimah, take a look at fkoikoi's code and try to figure out the issue with your dict | 13:16 |
fkoikoi | workers_ages = {"freena":"17", "tboimah":"18", "svaye":"16"} | 13:16 |
fkoikoi | for key in workers_ages: | 13:16 |
fkoikoi | print(key, workers_ages[key]) | 13:16 |
shmohamud | I like it. What data structure is workers_ages? | 13:17 |
shmohamud | how're you doing mulbah? | 13:18 |
shmohamud | Good day svaye | 13:18 |
svaye | Thanks Jeff | 13:18 |
shmohamud | Can you write me a list with four names in it, Svaye? | 13:18 |
shmohamud | please call it names | 13:19 |
tboimah | Jeff did you kevin cole talk | 13:20 |
tboimah | *Jeff did you and kevin cole talk | 13:20 |
fkoikoi | to answer your question shmohamud | 13:21 |
fkoikoi | workers_ages is a dict | 13:21 |
shmohamud | correct. just making sure :) | 13:21 |
fkoikoi | okay | 13:22 |
shmohamud | fkoikoi, write me a for loop that prints out every number from 1 to 100, but it breaks if the number is equal to 98. Use the break statement | 13:23 |
shmohamud | tboimah, do you see the issue in your dict? | 13:23 |
tboimah | yeah i got it | 13:23 |
mulbah | ages_dict = {‘Name’ : ‘scooper’ , ‘Age’: 32} | 13:24 |
mulbah | print (ages_dict) | 13:24 |
tboimah | is there any question | 13:24 |
shmohamud | close, but we want scooper to be associated with the age. | 13:24 |
shmohamud | That's the power of a dict, we can access information by knowing the key | 13:24 |
shmohamud | so why don't you try again but instead of "Name":"scooper" try "scooper":32 | 13:25 |
tboimah | Jeff are you there | 13:25 |
mulbah | shmohamud how is my work | 13:25 |
fkoikoi | just give a minute shmohamud | 13:26 |
fkoikoi | ACTION going to the restroom | 13:26 |
shmohamud | I commented above mulbah - please retry with my advice and add more than one key / value pair please | 13:26 |
mulbah | okay | 13:27 |
shmohamud | ACTION goes to restroom | 13:27 |
*** shmohamud has quit (Remote host closed the connection) | 13:32 | |
svaye | dcammue said you should please cc him when you are sending any message | 13:33 |
svaye | That message is you Jeff | 13:33 |
svaye | sorry for you | 13:34 |
fkoikoi | I'm back | 13:34 |
shmohamud | back too | 13:34 |
mulbah | ages_dict = {“scooper”: 32, “paul”:30, “ Abraham”:40, “John”:21} | 13:34 |
mulbah | print (ages_dict) | 13:34 |
shmohamud | looking good Mulbah! Way to go. | 13:35 |
mulbah | Thanks | 13:35 |
shmohamud | Now mulbah, can you loop through all the key/value pairs and print out the keys and values? | 13:35 |
jelkner | tboimah, keep your questions here, not in a DM | 13:35 |
jelkner | so that: | 13:36 |
svaye | names = ["svaye", "fkoikoi", "tboimah", "shmohamud"] | 13:36 |
jelkner | 1. we get an automatic record | 13:36 |
svaye | print(names) | 13:36 |
jelkner | 2. everyone can see the information | 13:36 |
shmohamud | looking good Svaye, well done. Now can you loop through and print all the values in names? | 13:36 |
tboimah | I message you here but you was not responding that is why i Dm you | 13:37 |
jelkner | yes, tboimah, i talked to kevin | 13:37 |
jelkner | he emailed you back, didn't he? | 13:37 |
jelkner | don't be shy about emailing him again | 13:37 |
tboimah | he did and i also email him back but seen then their is no respond | 13:38 |
jelkner | he's even older than i am (if you can believe that! ;-), and we are both going senile | 13:38 |
jelkner | so be patient with us | 13:38 |
svaye | names = ["svaye", "fkoikoi", "tboimah", "shmohamud"] | 13:38 |
svaye | for key in names: | 13:38 |
svaye | print(names) | 13:38 |
shmohamud | svaye, did I ask you to print the whole list each time, or each individual name? | 13:38 |
shmohamud | I wasn't specific, I wanted to you to print each individual value | 13:39 |
jelkner | tboimah, mulbah, please email kevin again | 13:39 |
jelkner | cc me | 13:39 |
jelkner | and ask him if he will propose a time to meet with you here in irc to make plans | 13:40 |
tboimah | okay sir | 13:40 |
mulbah | Okay Jeff | 13:40 |
jelkner | that's the next step | 13:40 |
jelkner | i'm getting together with him on saturday, june 24th | 13:40 |
jelkner | i don't want to step on his toes | 13:41 |
jelkner | if he is going to mentor you, he will decided what you do | 13:41 |
jelkner | if he doesn't do it, i'm going to have to help you | 13:41 |
svaye | names = ["svaye", "fkoikoi", "tboimah", "shmohamud"] | 13:41 |
svaye | for key in names: | 13:41 |
svaye | print(key,names) | 13:41 |
jelkner | even though kevin knows *way* more than i do | 13:41 |
svaye | Is this what you are talking about shmohamud? | 13:42 |
shmohamud | ok, you're printing the individual names now, but I would remove the names from the print statement | 13:42 |
shmohamud | Also, i would've named "key" to "name" because it's a list data type not a dict data type | 13:42 |
jelkner | we will use The Linux Command Line book if i do it with you | 13:43 |
svaye | names = ["svaye", "fkoikoi", "tboimah", "shmohamud"] | 13:43 |
jelkner | do you have that book, tboimah and mulbah | 13:43 |
svaye | for key in names: | 13:43 |
svaye | print(key) | 13:43 |
tboimah | yeah | 13:43 |
shmohamud | looking better, svaye | 13:44 |
svaye | names = ["svaye", "fkoikoi", "tboimah", "shmohamud"] | 13:44 |
svaye | for name in names: | 13:44 |
svaye | print(name) | 13:44 |
shmohamud | perfect | 13:44 |
shmohamud | well done! | 13:44 |
*** tboimah has quit (Quit: Leaving) | 13:44 | |
mulbah | yes I have it | 13:44 |
shmohamud | anyone have questions? | 13:48 |
jelkner | awesome, mulbah | 13:48 |
jelkner | can you give a copy to tboimah please? | 13:48 |
jelkner | while you wait to hear from kevin | 13:48 |
jelkner | you can be using that | 13:48 |
mulbah | Okay Jeff | 13:48 |
jelkner | remember one really important thing: *You have a lab to play with*! | 13:49 |
jelkner | that makes you very fortunate | 13:49 |
jelkner | since there are a whole collection of machines in there | 13:49 |
jelkner | and you can use some of them for "experiments" as you lear | 13:49 |
mulbah | shmohamud hear is my answer on the question you give me | 13:49 |
jelkner | learn | 13:49 |
mulbah | ages_dict = {“scooper”: 32, “paul”:30, “ Abraham”:40, “John”:21} | 13:49 |
mulbah | 13:49 | |
mulbah | for each_age in ages_dict: | 13:49 |
mulbah | print(each_age) | 13:49 |
jelkner | ok, svaye and dcammue | 13:50 |
jelkner | let's talk web | 13:50 |
jelkner | i called CIW yesterday | 13:50 |
jelkner | i should have accounts for you later today | 13:50 |
mulbah | Okay Jeff | 13:50 |
jelkner | so tomorrow, we can get started with the Advanced HTML5 & CSS3 Specialist course | 13:50 |
mulbah | shmohamud am I correct? | 13:51 |
dcammue | okay | 13:51 |
shmohamud | I asked you to print the keys and values, so far you're printing the keys | 13:51 |
shmohamud | so it's partially correct. Do you know how to print the values, too? | 13:51 |
svaye | Thanks Jeff I am looking forward to it | 13:52 |
mulbah | yeah | 13:53 |
shmohamud | please do | 13:54 |
sysadmin_ | num = 101 | 13:58 |
sysadmin_ | for numbers in range(1, num): | 13:58 |
sysadmin_ | print(numbers) | 13:58 |
sysadmin_ | 13:58 | |
sysadmin_ | break | 13:58 |
sysadmin_ | if num <= 98 : | 13:58 |
sysadmin_ | print("stop") | 13:58 |
shmohamud | fkoikoi, when does that break occur? | 13:59 |
*** tmickelson has quit (Quit: leaving) | 13:59 | |
*** fkoikoi has quit (Ping timeout: 480 seconds) | 14:00 | |
*** svaye has quit (Ping timeout: 480 seconds) | 14:00 | |
*** dcammue has quit (Ping timeout: 480 seconds) | 14:00 | |
*** scooper has quit (Ping timeout: 480 seconds) | 14:01 | |
jelkner | shmohamud, still here? | 14:01 |
*** mulbah has quit (Ping timeout: 480 seconds) | 14:01 | |
shmohamud | yep | 14:01 |
jelkner | looks like network glitch with MCSS | 14:01 |
shmohamud | I see | 14:01 |
jelkner | since they all dropped off at once | 14:01 |
shmohamud | ok.. I'll stick around for 10m to see if they get back. | 14:01 |
jelkner | can i give you a quick call? | 14:02 |
shmohamud | sure | 14:02 |
svaye__ | I am back | 14:02 |
fkoikoi_ | shmohamud | 14:06 |
mulbah | shmohamud can you give me a difficult assignment to do | 14:06 |
shmohamud | one sec i'm on the phone with Jeff | 14:06 |
mulbah | very difficult one i mean | 14:07 |
jelkner | mulbah, i have a comment to make about that | 14:13 |
jelkner | before you can really do "difficult" assignments | 14:13 |
jelkner | we need to get the workflow operating | 14:13 |
jelkner | by that i mean using https://git.mcssliberia.org/python-team/PythonStudy | 14:14 |
jelkner | once things become complex | 14:14 |
jelkner | you will need source control | 14:14 |
jelkner | *and*, by learning to use git effectively, you make is so much easier for shmohamud and i to track your progress | 14:15 |
shmohamud | In the meantime, here is a challenge question: Print every number from 1 to 100 (both included) on a new line. Numbers which are multiple of 3, print “Fizz” instead of a number. For the numbers which are multiples of 5, print “Buzz” instead of a number. For the number which is multiple of both 3 and 5, print “FizzBuzz” instead of numbers. | 14:15 |
jelkner | i've been using git with my students in this way for many years | 14:15 |
jelkner | ACTION will stop preaching now, and let shmohamud run the show ;-) | 14:15 |
jelkner | ok all, i'm outta here | 14:16 |
shmohamud | we definitely need to work git workflows in. I'll try to get work in some git tomorrow. | 14:16 |
jelkner | svaye__, dcammue_ by tomorrow we should be able to CIW | 14:16 |
shmohamud | any last questions before I log off for the day? | 14:16 |
jelkner | we'll be using git for that too | 14:16 |
svaye__ | Okay Jeff have a nice day | 14:17 |
jelkner | thanks, svaye__ | 14:17 |
jelkner | ACTION signs off for the day | 14:17 |
*** jelkner has quit (Quit: Leaving) | 14:17 | |
shmohamud | no last questions? | 14:18 |
shmohamud | fkoikoi I want you to solve FizzBuzz challenge above for homework | 14:18 |
svaye__ | is the assignment for everyone | 14:18 |
fkoikoi_ | okay shmohamud | 14:18 |
shmohamud | svaye, I want you to write a for loop that prints out each even number between 1 and 100 | 14:19 |
svaye__ | Okay shmohamud | 14:19 |
shmohamud | have a great rest of your day everyone. Great job today. | 14:21 |
*** shmohamud has quit (Remote host closed the connection) | 14:21 | |
*** svaye__ has quit (Quit: Leaving) | 14:23 | |
*** fkoikoi_ has quit (Quit: Leaving) | 14:30 | |
*** dcammue_ has quit (Quit: Leaving) | 15:07 | |
*** tboimah has quit (Quit: Leaving) | 16:02 | |
*** mulbah has quit (Remote host closed the connection) | 16:02 | |
*** shmohamud has quit (Ping timeout: 480 seconds) | 16:29 | |
*** shmohamud has quit (Ping timeout: 480 seconds) | 17:31 | |
*** shmohamud has quit (Ping timeout: 480 seconds) | 19:32 | |
*** shmohamud has quit (Remote host closed the connection) | 20:45 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!