----BEGIN CLASS---- [13:30] #startclass [13:30] Roll Call [13:30] Prashant Sharma [13:30] Naman Sharma [13:30] Shiva Saxena [13:30] Ashish Kumar Mishra [13:30] Mayank Singhal [13:30] Janifa M [13:30] Rajat Gupta [13:30] Sehenaz Parvin [13:30] vishal Kushwaha [13:30] Shruti Dash [13:30] Shital Mule [13:30] Vivek Shukla [13:30] Gajendra Saraswat [13:30] Ananyo Maiti [13:30] Anusha K [13:31] Prabhu Sharan Singh [13:31] Nimisha C P [13:31] Kumar Vipin Yadav [13:31] Ola Ajayi [13:31] Priyanka Saggu [13:31] Jagannathan Tiruvallur Eachambadi [13:31] Soniya Vyas [13:31] Shubham Sharma [13:32] Okay [13:32] Shubham Sharma [13:32] Any questions till looping chapter? [13:32] heh [13:33] Questions anyone? [13:33] type ! [13:33] Nope [13:33] Jason Braganza [13:33] Anu Kumari Gupta [13:33] Prashant Jamkhande [13:33] Abdul Raheem [13:34] ! [13:34] Shamik Nandi [13:34] Prajit Mukherjee [13:34] ! [13:34] next [13:34] kushal, Just want to verify one thing [13:35] ananyo, Tell me. [13:35] kushal, In python 1 is equivalent to boolean True right ? [13:35] So when I do 1 == True it gives True [13:35] ananyo, Yes. [13:35] While when I do 5 == True it gives False [13:36] Or any integer [13:36] Actually any other Integer is a Truth value [13:36] not True itself. [13:36] try bool(anyint) [13:37] Ok I see [13:37] next [13:37] in the if else chapter, for truth testing we use if x: pass. i didn't understand how it works? meaning, what condition are we checking when we say if x? [13:37] Also in the last section of the if-else chapter [13:38] ! [13:39] anyone wants to answer sd30 ? [13:39] Anyone? [13:39] sd30, we are checking if "x" itself returns any True value. [13:40] Who all has the same question in mind, but afraid to ask? [13:40] shiva, still didn't get it [13:40] Who all has the same question in mind, but afraid to ask? [13:41] Wondering about the people who are totally silent. [13:41] sd30, if checks boolean True/False of expression. [13:41] Me [13:41] rishibit, explain a bit more please. [13:41] sd30: Whatever the value x holds , condition will be check for that [13:41] sd30, the value of any integer accept 0 is true so if you write if x: pass [13:42] abdul, See, unless you ask the question (without fear), you will not get the right answer. [13:42] abdul, You will have to get out of fear and ask questions. [13:42] sd30 in the previous session it was told that all integers except 0 are true [13:42] Ok :) [13:42] then if x has any value other then 0 it will run statements of if will execute [13:42] So if x is non zero it returns true [13:43] Thats the condition! [13:43] rishibit, vshuklajr, kvy, kps got it. thank you so much :) [13:43] An empty string like '' or "" or 0 or [] or {} are evaluated to False value. [13:43] Rest are Truth values. [13:43] next [13:44] kushal okay got it. [13:44] kushal, basically if statement is for conditional execution it will execute statements if your expression evaluates to True or if False it will go to else or elif part. [13:44] I got my question answered [13:44] Will pass this [13:44] Any other question anyone? [13:45] ! [13:45] Everyone understood everything? [13:45] next [13:45] elaborate %2d and %6.4f more [13:45] i know very little bit of them [13:46] I kept those examples as they are there in many C programming examples. [13:47] Sarques, While you print any integer and float value then you can limit that how much digit you want to print [13:47] Sarques, skip them for now. [13:47] next [13:47] kvy yes only that i know, but when i saw the output, i thought there is something more in them [13:47] kushal okay sure [13:48] Everyone has their notebooks open? [13:49] Do not search for answer for the next problems, instead try to solve by yourself. [13:49] Sarques, https://pyformat.info/ [13:49] kushal, yes open [13:49] yes [13:49] I will give small examples to be done within this session. [13:50] kushal, yes [13:50] kushal, sorry sorry my machine stopped working. Looping chapter is cleared. some errors occured but that was my mistake actually especially in giving correct spaces. :) [13:51] sehenaz, good point. [13:51] I will get back into something at the end. [13:51] If I ask you to find out if a number called `num` can be divided by a second number called `num2`, how will you find that? [13:52] using modulas [13:52] if the num mod num2 is zero [13:52] num%num2==0 [13:52] % [13:53] If(!(num1%num2):... [13:53] kushal, if the remainder is 0 using num1%num2 [13:53] Yes by using mod operator [13:53] ann, you forgot to give proper spaces. [13:53] by checking if num % num2 == 0 [13:53] prabhuss, same problem. [13:53] vshuklajr, gave right spaces. [13:53] kps, too many () [13:54] kushal, if(num % num2 == 0) [13:54] Do we need the bracket? [13:54] kushal, num % 2 == 0 [13:54] kvy, ? [13:54] kvy why 2? [13:54] kvy: that will check for even number [13:54] kushal, ooh num % num2 == 0 [13:55] Can everyone understand what is the answer people are telling? [13:55] yes [13:55] Yes [13:55] yes [13:55] yes [13:55] kushal, yes [13:55] Yes [13:55] yes [13:55] if(num % num2==0): [13:55] yes [13:55] yes [13:55] yes [13:56] yep [13:56] kushal, Will adding brackets cause extra overhead in terms of running time? [13:56] Now, write a for loop, from 1 to 100, and print the number, if the number is divisible by 3, then print fizz, if the number is divisible by 5, then print buzz, if divisible by both 3 and 5, then print fizzbuzz. [13:56] jeet__, no, they look ugly. [13:56] Do not show the answer here, just say done. [13:57] If you have any question, directly ask for help. [13:57] done [13:58] done [13:59] done [13:59] done. [13:59] kushal, done [14:00] done [14:00] done [14:01] done [14:01] done [14:01] done, https://notebooks.azure.com/amitrajit/libraries/dgplug [14:03] jeet__, you were not supposed to show the answer :( [14:03] done [14:03] Oh! Sorry. I am erasing my code. Sorry [14:04] done [14:04] done [14:04] jeet__, why you did that ;) [14:05] rishibit, may be he realize that his code was wrong [14:05] ! [14:06] Yes, we should go for an if if if or if elif elif . Was doubting that [14:06] Roll call : pooja kumari singh [14:06] kushal, done [14:06] kvy, X) [14:06] batul, ? [14:06] xD [14:07] batul xD [14:07] kushal, done [14:08] done [14:08] back. [14:08] Now everyone please paste the links here. [14:08] https://dgplug-storymode7.notebooks.azure.com/nb/notebooks/summertraining.ipynb [14:09] And then check for errors in others' code. [14:09] https://dgplug-caffeinatednerd.notebooks.azure.com/nb/notebooks/summertraining.ipynb [14:09] https://dgplug-anon-chmb3a.notebooks.azure.com/nb/notebooks/practise.ipynb [14:09] kushal, https://repl.it/repls/AttachedHandyMass [14:09] done [14:09] https://sarquesnotebookazure-anon-fzv6yg.notebooks.azure.com/nb/notebooks/summertraining.ipynb [14:09] https://dgplug-jasonbraganza.notebooks.azure.com/nb/nbconvert/html/summertraining.ipynb?download=false [14:09] https://notebooks.azure.com/amitrajit/libraries/dgplug [14:09] storymode7, wrong [14:10] https://dgplug-sd30.notebooks.azure.com/nb/notebooks/summertraining.ipynb [14:10] https://dgplug-anon-qxk9tw.notebooks.azure.com/nb/lab [14:10] storymode7, your code has collisions [14:10] Oops. [14:10] kvy, I have asked for notebook links. [14:10] kushal, I have a poor network today [14:11] prabhuss, you are also wrong. [14:11] kvy, You forgot to print the numbers in other scenario [14:11] :O [14:11] notebook is opening very slowly [14:11] https://dgplug-ananyo2012.notebooks.azure.com/nb/notebooks/summertraining.ipynb [14:11] https://kpsdgplug-kpsazure.notebooks.azure.com/nb/notebooks/summertraining.ipynb [14:11] https://dgplug-shivasaxena.notebooks.azure.com/nb/notebooks/looping.ipynb [14:11] So the output will be like this [14:11] 1 [14:11] 2 [14:11] fizz [14:11] 4 [14:11] buzz [14:11] ok i got it wrong [14:11] fizz [14:12] 7 [14:12] 8 [14:12] fizz [14:12] buzz [14:12] 11 [14:12] fizz [14:12] i am wrong, i printed only the targeted ones [14:12] 13 [14:12] 14 [14:12] kushal, okay got it [14:12] fizzbuzz [14:12] oh i started it from 0 [14:12] Everyone stop writing code please. [14:12] Let us get back to this. [14:12] A few things we can learn from this. [14:13] Everyone here? [14:13] yup [14:13] yes [14:13] yes kushal [14:13] Yes :) [14:13] yes [14:13] kushal, ooh , https://repl.it/repls/AttachedHandyMass [14:13] yes [14:13] yes [14:13] yes [14:13] yes [14:13] yes [14:13] https://dgplug-virtualrcoder.notebooks.azure.com/nb/notebooks/summertraining.ipynb [14:14] done [14:14] yes [14:14] https://dgplug-rishibit.notebooks.azure.com/nb/notebooks/summertraining.ipynb [14:14] yes [14:14] https://dgplug-inquiridortechie.notebooks.azure.com/nb/notebooks/summertraining.ipynb [14:14] yes, corrected my code too [14:14] kushal, https://dgplug-caffeinatednerd.notebooks.azure.com/nb/notebooks/summertraining.ipynb [14:14] corrected [14:15] kushal https://sarquesnotebookazure-anon-fzv6yg.notebooks.azure.com/nb/notebooks/summertraining.ipynb [14:15] First of all, you see most of the people here never understood the problem, but, jumped into writing code. [14:15] Which is one of the biggest problem of our industry. [14:15] https://dgplug-jasonbraganza.notebooks.azure.com/nb/nbconvert/html/summertraining.ipynb?download=false [14:15] https://dgplug-gutsytechster.notebooks.azure.com/nb/notebooks/summertraining.ipynb [14:15] We think we can solve everything by code, without understanding the actual problem at first. [14:16] To solve any problem, first we should be able to solve that problem in pen and paper. [14:16] At least logic wise. [14:18] hi kushal ! [14:18] kushal,what is going on ? i missed more than half an hour :( [14:18] ! [14:18] jasonbraganza, checkout your range ending as well as output. [14:18] http://www.projectcartoon.com/cartoon/2 this explains the problem properly. [14:18] apologies, I didn't know class is going on [14:19] next [14:20] next [14:20] May I know what are we discussing today? [14:20] prabhuss, thank you [14:20] jasonbraganza, :) [14:20] fixed :) [14:20] brute4s99, a problem using the ideas from the loops chapter. [14:20] Everyone saw the cartoon? [14:20] Any comments? [14:21] My question is offtopic. Will ask after the class then. Pass for now. [14:21] yes [14:21] jasonbraganza, I hate to say this but its still wrong. [14:21] kushal, that is me :) i need to work on myself [14:21] jasonbraganza, That is all of us. [14:22] kushal, yes i saw cartoons They are funny. [14:22] kps_ what is? [14:22] kushal, So everyone understands the problem differently [14:22] ananyo, that is part of it. [14:22] jasonbraganza, your code [14:22] jasonbraganza, you need to work on your output as told by kushal [14:22] ananyo, Check the documentation part. [14:22] kps_ as in what am i missing [14:22] oh ok [14:22] kushal, Yeah I really feel it [14:22] ! [14:22] I was way off. Like the cartoon, I didn't implement it properly. [14:22] ! [14:22] next [14:23] kushal, I didn't understand the beta tester part. [14:23] most of the time, I am like this only. [14:23] prabhuss, Do you know what is a beta tester? [14:23] kushal, they test the project code for errors [14:23] prabhuss, kps_ now? [14:24] and all you young folks please don’t hesitate to correct me. I won’t learn otherwise [14:24] prabhuss, yup, we will come about alpha, beta or release candidate later in another session. [14:24] jasonbraganza, in that case still no :( [14:25] kushal, okay :) [14:25] no sorry jasonbraganza it is now [14:25] jasonbraganza, output still looks same [14:25] kps_ ok please explain like I am 5. what is it that I am doing wrong? [14:25] i think my browser loaded a cached version [14:25] jasonbraganza, congrats! [14:25] iSwing xD [14:25] its correct now [14:25] oh, ok :) [14:26] https://pad.riseup.net/p/dgplug18 [14:26] Everyone first fill up with proper name and an URL to the notebook [14:26] and then start evaluating someone's else answer [14:26] type in your name at the end if you start looking into it. [14:26] so that others can know. [14:27] Most of you are unnamed in that pad. [14:27] Click on the upper right and add your name first. [14:28] How come kps checked an URL which is not in the pad? [14:28] :) [14:28] kushal, may I know how the folks are sharing their links. My link looks different from their [14:28] if anyone has any query, please ask here. [14:29] ! [14:29] next [14:29] kushal, may I know how the folks are sharing their links. My link looks different from their [14:29] next [14:30] someone wants to answer priyankasaggu119 ? [14:30] Yes [14:30] priyankasaggu119, just share link from browser [14:30] rishibit, is right [14:30] I am doing the same, rishibit. [14:30] priyankasaggu119, then how different? [14:31] Or you can open your library and there is a share button on top. [14:31] but it looks like https://dgplug-priyankasaggu119.notebooks.azure.com/nb/lab [14:31] ok jeet__ [14:31] Someone with that pink color is vandalizing the pad. [14:32] sd30, I think the fizzbuzz condition should be on top. [14:33] priyankasaggu119, open your dgplug notgebook from you library and post that link [14:33] kushal, can i write my name tomorrow Riseup pad is not opening in my system because of slow connection. [14:33] kvy, Okay [14:33] ! [14:33] no issues [14:33] next [14:33] jeet__ okay, but why? [14:33] may I know which pad? Does it concern us students? [14:34] last class kushal explained a lot about and connector [14:34] brute4s99, just scroll back, I just pasted. [14:34] if a number is divisible by 3 you are straightaway printing it, it may also be divisible by 5, sd30 [14:35] so the common case on top, sd30 [14:35] brute4s99, https://pad.riseup.net/p/dgplug18 [14:35] okay. Thank you, kushal ! Got it [14:35] jeet__ thanks :) understood [14:35] is it correct now?, kps_ :) [14:35] kushal, i think it was posted in the chat :) [14:36] who wrote wrong[kps] in mine XD [14:36] jeet__ please give it a look now? [14:36] priyankasaggu119, no [14:37] kps_, explain my mistake, I am not getting it. [14:37] VirtualRcoder, check my comment [14:37] who is vivek there? [14:38] kps_: me [14:38] If the number is divisible by 3 and 5 both but since it will satisfy the first condition, it won't go for any other. And not even a single case would show output as "fizzbuzz" in your program. [14:38] kushal: me [14:38] priyankasaggu119, you have given the condition for 3 and 5 separately but i think you missed out the condition when its divisible by both [14:38] sd30, Correct. no need of brackets. :) [14:38] cypher01, wow :) [14:38] priyankasaggu119, move the common multiple for 3 & 5 up top so t5hat that is processed first [14:38] ! [14:38] abdul: where is your code? [14:38] priyankasaggu119, yes it's correct, however jeet__ marked it wrong for some reason [14:38] abdul: your notebook does not have this exercise [14:39] I was corrected by gutsytechster. [14:39] jeet__ okay :) [14:39] j605: I joined late :( [14:39] kushal i think pink is unique there and it's me, how is it vandalizing the pad? [14:39] sorry jeet__ [14:39] I will go through the Logs and do it after this session :) [14:39] cypher01, you forgot to increment the value of i [14:39] kushal, some guys are missing the separator | . Is that a problem? [14:39] Sarques, there were too many / in many places in the pad. [14:39] abdul: so why did you paste your link in the risup pad? [14:39] brute4s99, it helps [14:39] priyankasaggu119, checkout your output for number divisible by both 3 and 5 [14:39] kushal check my code. when i first attempted the output was not right but changing the condition provided right output but i don't get Why. [14:40] brute4s99, it shows that some people can not read English. [14:40] abdul: that was for people to check solutions [14:40] snandi, checking [14:40] snandi, I can not find your link [14:40] Oh sorry I will remove it now [14:40] thanks, rishibit ! Mine is checked! [14:40] ohk kps_, jasonbraganza , but i feel, its correct now. [14:41] next [14:41] kushal: sorry , vivek was me i overlooked instructions [14:41] Kushal sorry check now [14:41] priyankasaggu119, no it is not :( [14:41] abdul, I can't find your code [14:41] i think you messed up the conditional checks [14:42] kushal, I don't have my dgplug notebook. So how shall I paste my link? [14:42] snandi, your code is scary. [14:42] soniya29, create a notebook first. [14:42] Kushal, done (save and checkpoint) [14:42] priyankasaggu119, hint: try switching your if conditions over each other :) [14:42] prabhuss: yeah I joined late due to some reason I will read the log and do that tonight :) [14:42] priyankasaggu119, use and in place of & [14:42] snandi, I am too hungry to understand that code. [14:43] kushal not the 3rd part [14:43] brute4s99, :) [14:43] abdul, okay [14:43] priyankasaggu119, how about you see others' link and apply semantics? It works, I've tried it on yours. [14:43] brb in 10 minutes. [14:43] priyankasaggu119, try yourself first [14:43] priyankasaggu119, & is bitwise and [14:44] Please who has trouble, please continue discussing. [14:44] you have almost got it [14:44] If you can not solve it, check the correct answers from the pad. [14:44] why is priyankasaggu119’s o/p funny, though the program seems right? [14:44] what am i missing> [14:44] ohk everyone. [14:45] jasonbraganza, & and 'and' are different [14:45] she's using a bitwise and that's why [14:45] aaah! [14:45] i need to be more eagle eyed [14:45] hey kps_ now? [14:45] yes, i was about to mention that hehehe. I need to work more on touchtyping! kps_ [14:46] priyankasaggu119, congrats! [14:46] priyankasaggu119, yes that was the only mistake [14:46] kps_ a bitwise & stips down to binary and ands the bits? [14:46] kps_: in your code fizzbuzz never print , check the order of conditions [14:46] jasonbraganza, yes [14:46] haha, thank you prabhuss , kps_ [14:46] vshuklajr, is that so , will get to it [14:46] kps_, what was happening when she was using & instead of 'and' [14:46] who is neeraj? you could've pinged me instead of just deleting my comment [14:46] kps_ the more you learn … thank you :) [14:50] vshuklajr, what about now? [14:50] and thanks [14:51] kps_, fizzbuzz should be on top [14:51] then other cases [14:51] :/ [14:51] check it once [14:51] i think it is [14:51] rishibit: thanks for reviewing. [14:51] kps wrong! [14:51] ohh jeet__ was fast :) [14:52] kps_, For example, 15 is fizzbuzz, you code says its fizz, thus wrong. :) [14:52] kps_, moved the fizzbuzz to the top. or am i seeing an old cache? [14:52] cypher01, elif comes after if ,as priyankasaggu119 pointed out :) [14:52] kps_, refreshed an ok :) [14:53] my bad jasonbraganza i didn't save it [14:53] kps_, the questions stated to write a for loop [14:53] kps, you understand the point in taking it on top? [14:53] kps_, Done :) [14:54] absolutely Sarques [14:54] if the number is divisible by both 3 and 5.. [14:55] then it must be divisible by 3 as well as 5 [14:55] kps_ i refreshed your code, seems like it is still wrong [14:55] kps_ yes [14:55] if must be on top! seems like your elif is coming first [14:55] meaning that the condition n%3 or n%5 overrides the condition n%3 and n%5 [14:56] kps_, the condition always starts with an if [14:56] Sarques, prabhuss now? [14:56] Who is inuiridortechie BTW ? [14:56] kps_ nope [14:57] kps still wrong [14:57] 15 must be fizzbuzz [14:57] Sarques try a Ctrl+Shift+R [14:57] kps_, correct [14:58] kps_, correct :) [14:58] prabhuss, :) [14:58] vshuklajr, ? [14:58] kps_ oh yes, its good [14:58] kps_, :) [14:58] i was seeing a previous output [14:59] This is a great method of learning. :) Thanks kushal [14:59] thats why a Ctrl+Shift+R :) [14:59] clears cache [14:59] Few things to learn here. [14:59] kps_ thanks, i didn't knew that [14:59] Communication :) [15:00] You will know how to explain a problem to your friends. [15:00] kushal, yes :) [15:00] Also, how to read source code. [15:00] Sarques, now you do :) [15:00] You will read more code in your life than writing. [15:00] kushal, thanks for this wonderful method of learning :) [15:00] Typos are real, and all of us do typing mistakes. [15:01] kps_: it's correct now , sorry for delay [15:01] Who all are still left? [15:01] Hi i am inquiridortechie. [15:01] Done [15:02] I lost my connection in the middle. [15:02] kushal, i think all cleared. [15:02] vshuklajr, :) [15:02] Shiva, please check your code. It is wrong. [15:02] inquiridortechie, we just discussed fizzbuzz problems [15:02] I can still see a few wrongs written there. [15:02] sehenaz, did you try [15:02] ? [15:03] yeah, kps_ , you havn't changed the wrong to correct on mine :p [15:04] priyankasaggu119, ? [15:04] fix those please [15:04] priyankasaggu119, oh sorry [15:04] snandi, Your status is still wrong. [15:04] kushal, very slow network . i couldn't open the notebook still now. :( i will do it as soon as it opens. very bad network here today. [15:04] Shiva, checking ? [15:05] sehenaz, Okay, no issues [15:05] jasonbraganza, yes [15:05] cypher01, are you there? [15:05] yes [15:05] j605, Your code is unique :) Kind of applying a sieve [15:06] priyankasaggu119, I didn't get you. I am not printing "fizzbuzz". Can you please re-check? [15:06] see your code, and the feedback cypher01 [15:06] Kushal i ma done with save and checkpoint [15:06] * i am [15:06] cypher01, i+=1 [15:06] ananyo: I thought that was going to make it efficient but probably not in this case [15:06] my notebook is not responding so neither I was able to see my output as well as the errors [15:06] yeah Shiva, I am checking:) [15:06] shiva, your last condition should be on top [15:06] i did save and checkpoint now by the way [15:07] cypher01, okay, correct it whenever you can! [15:07] Someone please check VirtualRcoder [15:07] man-jain, your notebook doesnt exist? [15:07] kushal,check my link ,i started late https://dgplug-anon-sjjsaw.notebooks.azure.com/nb/notebooks/summertraining.ipynb [15:07] VirtualRcoder is al right [15:08] shiva, if you have corrected it, you might not have saved it. Because it is still not showing any "fizzbuzz" [15:08] shiva, there is no condition to print "fizzbuzz" [15:08] man-jain, and now it does :) [15:08] VirtualRcoder: that's a new way! Looks great. [15:08] poojaencoded, I will not check anything pasted here, you will have to put it in the pad and ask one of your friend to check that [15:08] i can't see shiva's code :( [15:08] poojaencoded, links on the risepad please [15:08] shiva, include one more condition for it [15:08] VirtualRcoder, what is that end="" for thgough? [15:08] Also, shiva , you never performed a check for both (x%3 and x%5) [15:08] Helping others to fix code is the best way to learn basics of programming and creating a solid knowledge. [15:09] kushal,jeet__ okay [15:09] VirtualRcoder, what is that end="" for thgough? [15:09] kushal, right. [15:09] jasonbraganza: so that fizz and buzz get printed in the same line when divisible by 3 and 5 both. That's new, no? [15:09] VirtualRcoder: nice [15:10] scoobydoo! :) wrong :/ [15:10] man-jain, theres a condition positioning mistake [15:10] man-jain, you have printed the number first [15:10] logic's correct [15:10] VirtualRcoder smart :) i was wondering how, until I realised two different ifs :) [15:10] man-jain, it should be last in the conditional statements [15:11] poojaencoded, add your link to the pad, i want you to correct your code fast! :) [15:12] sd30, I am unable to see your code's output. Maybe you didn't save it [15:12] jasonbraganza, but the number should not be printed for buzz or fizz or fizzbuzz right? [15:12] priyankasaggu119, prabhuss jasonbraganza thanks I got it now. Fixing. [15:12] prabhuss, will do ASAP. slow net :/ [15:12] bhavin192, eh semantics :) [15:12] sd30, okay :D [15:12] jasonbraganza, end is for removing extra spaces and if have replaced if with elif :) [15:12] yes, shiva:) [15:13] bhavin192, that i leave to wiser folk like you :) [15:13] jasonbraganza, or wrong solution! :P [15:13] bhavin192 ^ :P [15:13] prabhuss: Okay, Thanks :) [15:13] VirtualRcoder, that's innovative solution [15:14] VirtualRcoder, but the number should not be printed for buzz or fizz or fizzbuzz right? [15:14] kps_: yes i copied the link earlier then corrected it later. [15:14] j605, I wrote a code taking your idea. That should make it efficient. Check the last solution of my notebook https://dgplug-ananyo2012.notebooks.azure.com/nb/notebooks/summertraining.ipynb [15:15] priyankasaggu119, done, can you please check it now? [15:15] Sarques: check it [15:16] i checked that at first [15:16] you are wrong, poojaencoded [15:16] bhavin192, Okay i didn't give a attention to it [15:16] I am changing it [15:16] shiva, yes! [15:16] shiva, Congrats! :D [15:16] Sarques: where is the problem? [15:17] what do you think will happen for 21 [15:17] ? [15:17] ananyo: nice [15:17] didn't know about print(*array) [15:18] poojaencoded, 21 is divisible by both 3 and 7, but your code says it is divisible only by 3! [15:18] yes shiva, it is correct now:) [15:18] but in a notebook you can just leave array in cell and it will print it [15:18] j605, Yeah I didn't know it a minute earlier as well [15:18] Sarques, its 3 and 5 :) [15:18] j605, Searched the web [15:18] Sarques, 3! [15:18] jasonbraganza, prabhuss, priyankasaggu119 thank you :) [15:18] Sarques, not 7 [15:18] shiva, help poojaencoded now [15:18] poojaencoded, checkout other people code to find what you are doing wrong :) [15:19] ananyo: is *listname iterate through each list item ? [15:19] whith conditions [15:19] poojaencoded, that's why your o/p is scooby only, priority matters [15:19] kps_ rishibit her code is somewhat different, kinda scoobydoo [15:19] vshuklajr, Yup it will print the entire list [15:19] :) [15:20] Bhavin192, I changed. Now i understand why jasonbraganza was asking for end :) [15:20] VirtualRcoder, what that new line in f() is doing? and end? [15:21] s/f()/f"" [15:21] poojaencoded, schooydoo [15:21] priyankasaggu119, That's a f string [15:21] priyankasaggu119, Changing the line after every print. [15:21] priyankasaggu119, I have removed them [15:21] man-jain, Congrats! :D [15:22] priyankasaggu119, http://pymbook.readthedocs.io/en/latest/variablesanddatatypes.html#formatting-strings [15:23] ananyo, jeet__ , I know about them, but i wanted to know what was his idea behind using that way. :) [15:23] poojaencoded, correct now! [15:23] poojaencoded, fails for 21 [15:23] prabhuss: hehe thanks :D [15:23] man-jain, :) [15:24] poojaencoded, your third condition should be present at first. [15:24] Anyone still left? [15:24] okay [15:25] poojaencoded, try swicthing conditions order. Check out 21 printing only "scooby" [15:25] Anyone still left? [15:25] prabhuss: i am doing fizzbuzz [15:26] sorry poojaencoded [15:26] prabhuss, she is done now, go deep down the page, i discovered that by mistake :) [15:26] ohh my mistake poojaencoded Sarques [15:27] poojaencoded, you understood the whole meaning in switching the order? [15:27] kushal, Leaving for now. Thanks for today's session. It was really good :) [15:27] rishibit: which one you talk scooby doo or fizzbuzz? [15:27] hehe [15:27] prabhuss, never mind! [15:27] poojaencoded, scooby doo ;) [15:27] So tomorrow we will continue [15:28] Okay [15:28] kushal okay! [15:28] poojaencoded yay :) [15:28] kushal: okay [15:28] okay kushal [15:28] kushal, any homework for today? [15:28] kushal, thank you kushal [15:28] kushakyes [15:28] priyankasaggu119, Readability I guess, read this https://realpython.com/python-f-strings/ [15:28] thanks for an amazing session, one questions but a lot of learning :D [15:28] Sorry, kushal okay [15:28] kushal, thank you. [15:28] Please continue discussions here. ----END CLASS----