----BEGIN CLASS---- [13:59] #startclass [13:59] Roll Call [13:59] Jason Braganza [13:59] Shiva Saxena [13:59] Mayank Singhal [13:59] Rishikesh Bamdale [13:59] Janifa M [13:59] Shruti Dash [13:59] Amitrajit Bose [13:59] Prashant Sharma [13:59] Sehenaz Parvin [13:59] Priyam das [13:59] Ananyo Maiti [13:59] Shital Mule [13:59] Aravind Menon [13:59] devesh verma [13:59] nupur kapur [13:59] Anusha K [13:59] Bhavin Gandhi [13:59] Shubham Sharma [13:59] Vishal Kushwaha [13:59] Nimisha C P [13:59] Priyanka Saggu [13:59] Karan Pratap [13:59] pooja kumari singh [13:59] Vivek Shukla [13:59] Shivam Bansal [13:59] Neeraj Kumar Arya [13:59] Gajendra Saraswat [13:59] Ashish Kumar Mishra [13:59] Abdul Raheem [13:59] <__rex__> Rakshit Airani [13:59] Sahil [13:59] Manank Patni [13:59] Jagannathan Tiruvallur Eachambadi [13:59] sonia singla [13:59] Mansi Agrawal [13:59] Vara Singh [13:59] Rajat Gupta [13:59] Naman Sharma [13:59] Shivam Singhal [14:00] Shaikh_farhan [14:00] Kumar Vipin Yadav [14:00] Shamik Nandi [14:00] Prabhu Sharan Singh [14:00] Jitendra Kumar Tripathi [14:00] Shivam Goyal [14:00] there is no session today? [14:00] Ola ajayi [14:00] bhavin192, This is cool [14:00] Makes typing emoji easier [14:00] Avik Mukherjee [14:00] pawan [14:00] pooja_s, session just started , you can roll call :) [14:00] pooja_s, today is a session and roll call is going on [14:01] :e! [14:01] Okay. [14:01] pooja sulakhe [14:01] sorry [14:01] Who all are total new to computer programming? [14:02] i don’t know where I fit! [14:02] Me [14:02] jasonbraganza, you are not. [14:02] ok [14:02] osscodr, Okay [14:02] jasonbraganza, me too [14:02] anyone else? [14:03] sehenaz_, and osscodr [14:03] anyone else? [14:03] me as well [14:03] Me [14:03] Okay, anyone else? [14:04] All the new folks, which distribution are you running? Please also tell us the version number. [14:04] I know very basic C/C++.I am using Kubuntu 18.04. [14:04] fedora 28 [14:04] Fedora 27 VM [14:05] fedora 28 [14:05] I am using Ubuntu 16.04 LTS [14:05] ubuntu 18 [14:05] I said new folks :( [14:05] ubuntu 16.04 LTS [14:05] Fedora 28 [14:05] New to programming [14:05] Fedora 28 [14:05] I am also new [14:05] sorry, kushal [14:05] sorry kushal [14:05] Sorry kushal [14:06] anyway [14:06] From today we will start leaning Python. [14:06] We will go very slow. [14:07] ok :) [14:07] We will use Python 3.6.x for our class. [14:07] Please create an account (we already asked this last night) at https://notebooks.azure.com/ [14:08] Roll Call: Rahul Jha [14:08] Then, create a new library, name it dgplug [14:09] done [14:09] Tell done here. [14:09] done [14:10] Done [14:10] done. [14:10] kushal, done [14:10] done [14:10] done [14:10] done [14:10] done [14:10] done [14:10] DOne [14:10] done [14:10] done [14:10] done [14:10] done [14:10] <__rex__> done [14:10] done [14:10] Done [14:10] We'll make it public right? kushal [14:10] done [14:10] done [14:10] Done [14:10] jeet__, yes [14:11] g33kyshivam: I will never, ever ever ever give my money to Apple. [14:11] done [14:11] Please make sure that the library is public, [14:11] thebigj, the session is going on. [14:11] Done [14:11] kushal, we don't have to add a readme.md by default right? [14:11] g33kyshivam: Thanks for giving an advise. I too consider butterfly keys as horrible [14:11] Its asking for unique id for sharing [14:11] done [14:11] championshuttler: Thanks [14:11] done [14:11] prabhu, no [14:11] done [14:11] kushal, okay thanks :) [14:11] ABD, Use dgplug [14:11] kushal,already have dgplug library,can i give another name? [14:12] poojaencoded, let us just use that dgplug [14:12] done [14:12] okay ,kushal [14:12] Done [14:13] done [14:13] done [14:13] Anyone left? [14:13] done [14:13] if you need help, please let us know here [14:13] done [14:14] Is Library name and UNique ID both dgplug? [14:14] aravindm97, yes [14:14] aravindm97, yes [14:14] kushal, can we delete a library? [14:14] priyankasaggu119, yes [14:14] championshuttler: I agree that Apple devices are good. My only problem is with their Non free software policies. [14:14] done [14:14] prabhu, jasonbraganza THank you [14:15] done [14:15] thebigj, can you please stop talking during the session? or else we will have to kick you out. [14:15] Done [14:15] kushal, I am not able to do it. The delete button is disabled [14:15] priyankasaggu119, Click on the created library [14:15] thebigj, please talk in personal chat. [14:16] priyankasaggu119, you must be viewing the library. Go to the library listing instead. [14:16] priyankasaggu119, right click :) [14:16] priyankasaggu119, go to yourusername/libraries -> select the library you want to delete and click on delete [14:16] kushal, i gave the id not as dgplug [14:17] ohk kushal, prabhu, AdityaPatil and aravindm97 [14:17] kps__, it is okay [14:17] sehenaz_, are you ready? [14:17] ok kushal [14:18] Inside the library, click on the + sign and create a python3.6 notebook, name it summertraining [14:19] done [14:19] done [14:19] done [14:19] done [14:19] done [14:19] Done. [14:19] done [14:19] done [14:19] Done [14:19] done [14:19] <__rex__> done [14:19] kushal, done [14:19] done [14:19] done [14:20] done [14:20] done [14:20] done [14:20] done [14:20] done [14:20] done [14:20] done [14:20] Done [14:20] done [14:20] We will start writing our code here. [14:20] done [14:21] done [14:21] done [14:21] yup done. [14:21] done [14:22] In the first line, let us write the following [14:22] a = 10 [14:22] b = 20 [14:22] print(a + b) [14:22] and then press Ctrl+enter [14:22] That should give you 30 on the screen. [14:22] Let us if you don't see 30. [14:23] done [14:23] What we did here? [14:23] done [14:24] done [14:24] Done [14:24] done [14:24] kushal, Addition [14:24] Addition for two numbers :) [14:24] which done is this? [14:24] kushal, assigned values 10 and 20 to two variable a and b and added them [14:24] kushal, addition [14:24] yes. [14:24] a=10 gives SyntaxError: can't assign to literal [14:25] We said a is 10 and b is 20 [14:25] we printed addition of a and b [14:25] done [14:25] and then added a and b, and also printed the value. [14:25] kushal, Not showing output as 30. [14:25] sd30, can you please copy paste the exact thing here (what you wrote there)? [14:25] yeah :) [14:26] smule, any error? [14:26] yup done kushal [14:26] Done [14:26] done [14:26] kushal, Done! [14:26] kushal, No. [14:26] kushal, i got it, i was writing the assignment for a and b on the same line. writing it on separate lines makes it works fine. [14:27] done [14:27] smule, can you please show us what exactly you wrote to us? [14:28] I mean what exactly you wrote in the notebook? [14:28] mean while in the next box, we can write [14:28] print(100) [14:28] This will print 100 [14:28] kushal, https://paste.fedoraproject.org/paste/70pG4HQvS-tj1xgE81a4AQ [14:29] Done kushal [14:29] kushal, print(100) will show an error :) [14:29] smule, did you press Ctrl + Enter after that? [14:30] kushal, done [14:30] smule, you can also click on the Run button [14:30] ! [14:30] kvy: what is the error? [14:30] next [14:30] Done [14:30] kvy, what is the error? [14:30] solved [14:31] sonia, RJ722 solved [14:31] now we can also say c = a + (b * b) [14:31] kvy: cool :) [14:31] and then print(c) [14:31] See if you can find the answer. [14:32] ! [14:32] next [14:32] done [14:32] kushal, 120 [14:32] kushal, ctrl + enter switches my editor to command mode, it is unable to run my command [14:32] kushal: 410 [14:32] kushal, 410 [14:33] 410 [14:33] prabhu, editor? which editor? [14:33] kushal, 410 [14:33] 410 [14:33] kushal, 410 [14:33] 410 [14:33] kushal, notebook I mean [14:33] 410 [14:33] everyone should get 410 as answer [14:33] done [14:33] <__rex__> done [14:33] done [14:33] done [14:33] 410 [14:33] done [14:33] done [14:33] yes [14:33] Hello guys new guy here sorry lost almost everything [14:33] done [14:33] done [14:33] 410 [14:33] done [14:33] because we are multiplying 20 with 20 and then adding 10 [14:33] yes [14:33] Done [14:34] Can anyone brief me up [14:34] done [14:34] Cold3r, we just started doing simple calculations using python. [14:34] done [14:34] Cold3r, please be patient, you can read the log after the session. [14:34] ! [14:34] next [14:34] ! [14:35] What is IN[] ? [14:35] kushal, got it [14:35] ABD that is the line number as you execute [14:35] the number of the step. [14:35] next [14:35] ok :) [14:36] Got ans np go on [14:36] prabhu, what OS are you on? [14:36] Cold3r, please do not use such short forms here in this channel. [14:36] Cold3r, use full English [14:37] ! [14:37] RJ722, feel free to talk to prabhu in PM. [14:37] next [14:37] ! [14:37] Why i am keep hetting this message The notebook file has changed on disk since the last time we opened or saved it. Do you want to overwrite the file on disk with the version open here, or load the version on disk (reload the page)? [14:37] getting [14:37] Fedora RJ722 [14:38] vshuklajr, not sure [14:38] next [14:38] I ran: sudo apt-get install python 3.6.1 ; I am on Ubuntu 16.04; But my python version did not change even after downloads. [14:38] You might be having latest version. [14:38] It is still on 3.5 [14:39] jeet__, type python3.6 on bash [14:39] Run apt-get update [14:39] command not found rishibit [14:39] jeet__, that is not how you should install python. [14:40] Everyone, if you remember, we asked everyone to use latest Fedora as it is better for developers, you will slowly see why. [14:40] anyway, we are using Python notebooks right now. [14:40] Any question till now? [14:40] none [14:40] no [14:40] No [14:40] No :) [14:40] No [14:40] no [14:40] no [14:40] kushal, nope [14:40] no [14:40] no [14:40] no [14:40] no [14:40] no [14:41] no [14:41] no [14:41] no [14:41] no [14:41] no [14:41] NO [14:41] ! [14:41] no [14:41] kushal, nope :) [14:41] next [14:41] nope [14:41] my code didn't run [14:41] kushal, shift+enter worked for me to see output. [14:41] i typed it [14:41] but got no output [14:41] vara1, you will have to show us the code and also the error. [14:41] vara1, after typing, press Ctrl+Enter [14:42] kushal, Can we please discuss after class? :) [14:42] or click on the run button on the top. [14:42] ! [14:42] there was no error actually [14:42] jeet__, yes [14:42] nothing happened after clicking ctrl+enter [14:42] it asked me to save the file [14:42] i clicked save [14:42] vara1, where are you writing this? [14:43] in the notebook, kushal [14:43] vara1, can you please share us the link of the notebook? [14:44] https://notebooks.azure.com/Vara/libraries/dgpl [14:44] first, click on the save and checkpoint in the file menu [14:44] here it is [14:44] vara1, yup, you are supposed to create a notebook, not a normal file. [14:45] vara1, click on + New again [14:45] and select the item type as Python3.6 notebook [14:45] So using notebook we can write and execute code on the servers and we can share it also. [14:45] But, generally we do write code in our local computer. [14:46] ok, kushal [14:46] Open terminal [14:46] and type python3 and press enter [14:46] let me try it [14:46] It should give you a prompt with >>> [14:46] yes [14:46] and on top the Python version line, please paste the python version line here. [14:46] Python 3.5.3 (default, Jan 19 2017, 14:11:04) [14:46] ^^ like that [14:47] Python 3.5.2 (default, Nov 23 2017, 16:37:01) [14:47] Python 3.6.4+ (default, Feb 12 2018, 08:25:03) [14:47] Python 3.6.5 (default, Apr 1 2018, 05:46:30) [14:47] Python 3.6.5 |Anaconda, Inc.| (default, Apr 26 2018, 08:42:37) [14:47] Python 3.5.2 (default, Nov 23 2017, 16:37:01) [14:47] Python 3.5.2 (default, Nov 23 2017, 16:37:01) [14:47] Python 3.6.5 (default, Mar 29 2018, 18:20:46) [14:48] [20:13:45] vara1, where are you writing this? [14:48] [20:13:55] * harish (~harish@158.140.144.42) has joined [14:48] [20:14:00] * kps__ (~kps@106.206.109.86) has joined [14:48] [20:14:09] * pooja_s has quit (Ping timeout: 276 seconds) [14:48] [20:14:10] in the notebook, kushal [14:48] [20:14:26] vara1, can you please share us the link of the notebook? [14:48] Python 3.6.5 (default, Apr 4 2018, 15:01:18) [GCC 7.3.1 20180303 (Red Hat 7.3.1-5)] on linux [14:48] [20:14:57] https://notebooks.azure.com/Vara/libraries/dgpl [14:48] [20:14:58] first, click on the save and checkpoint in the file menu [14:48] Python 3.6.5 (default, Apr 1 2018, 05:46:30) [14:48] [20:15:04] here it is [14:48] [20:15:12] * snandi has quit (Remote host closed the connection) [14:48] [20:15:13] * shivam2704_ (67557f10@gateway/web/freenode/ip.103.85.127.16) has joined [14:48] [20:15:15] * shivam2704 has quit (Ping timeout: 252 seconds) [14:48] [20:15:35] vara1, yup, you are supposed to create a notebook, not a normal file. [14:48] [20:15:58] vara1, click on + New again [14:48] priyankasaggu119, ? [14:48] [20:16:00] * snandi (~shamik@182.57.251.11) has joined [14:48] [20:16:15] and select the item type as Python [14:48] Python 3.6.5 (default, Apr 1 2018, 05:46:30) [14:48] Python 3.6.5 (default, May 3 2018, 10:08:28) [14:48] it says python 2.7.12 [14:48] priyankasaggu119, messed up [14:48] python 2.7.14 [14:48] Python 3.5.2 (default, Nov 23 2017, 16:37:01) [14:48] Python 3.6.5 (default, Apr 1 2018, 05:46:30) [14:48] ! [14:48] Python 3.5.2 (default, Nov 23 2017, 16:37:01) [14:48] got the output :) [14:48] vshuklajr, did you type python3 ? [14:48] Python 3.6.5 (default, Apr 1 2018, 05:46:30) [14:49] vara1, good to know. [14:49] kushal i did not get the Azure Notebooks operation [14:49] thanks, Kushal :) [14:49] python 3.6.5 [14:49] Python 3.6.5 (default, Apr 1 2018, 05:46:30) [14:49] kushal, Python 3.6.5 (default, Mar 29 2018, 18:20:46) [14:49] kushal: ah okay [14:49] pooja_s, which exact operation? [14:49] priyankasaggu119, welcome back :) [14:49] sorry kushal, it happened by mistake. [14:50] Python 3.6.3 |Anaconda custom (64-bit)| (default, Oct 6 2017, 12:04:38) [14:50] Hoow to get a liabrary [14:50] Python 3.5.2 (default, Nov 23 2017, 16:37:01) [14:50] ! [14:50] pooja_s, you will have to create one. [14:50] Python 2.7.14 (default, Mar 14 2018, 16:45:33) [14:50] Python 3.6.5 (default, Mar 29 2018, 18:20:46) [14:50] pooja_s, someone will help you after the session. [14:50] Python 3.6.6 (default, Jun 27 2018, 13:11:40) [14:50] pooja_s, let us try locally now. [14:50] ok [14:50] Python 3.4.3 (default, Nov 28 2017, 16:41:13) [14:50] 3.5.2 [14:50] thanks kushal:) [14:51] Python 3.5.2 (default, Sep 14 2017, 22:51:06) [14:51] snandi, you did not follow our instruction. [14:51] I missed the part after 410 problem i got disconnected [14:51] snandi, type python3 [14:51] Python 3.5.2 (default, Nov 23 2017, 16:37:01) [14:52] a lot of folks need to upgrade. 3.6 was released a year ago [14:52] j605, no option if you are on debian or any other old distro [14:52] kushal, does it mean that 2 versions of python exist on my OS? [14:52] python 3.5.2 [14:52] prabhu, yes. [14:52] seems like the latest one is 3.6.6 [14:52] next [14:52] next [14:52] prabhu, yep. [14:52] Can we create a telegram group with all participants to properly help each other during other time and afterwards we can take classes here [14:53] But when i use python3.6 instead of python3 i got the output as follows:Python 3.6.4 (default, Jul 16 2018, 19:53:54) [14:53] Cold3r, we count telegram as a security risk and ask our participants not to even have it on their phone or computer. [14:53] Cold3r, we talk here all the day. [14:53] kushal, typing only python in terminal gives python 2.7.14 but python3 gives python 3.6.5? How is it possible? [14:53] Can I ask why , it is open source [14:53] nimishacp_, okay, then you have python3.6 also [14:53] Cold3r, discuss after the session please. [14:54] Ok thanks [14:54] kushal, does it mean 2 versions of Python exist on my OS? [14:54] prabhu, yes, those are two different versions [14:54] prabhu: because python is python-2.7 and python3 is python-3.x in your distro [14:55] Now, you can type the similar [14:55] a = 10 [14:55] press enter [14:55] and then [14:55] b = 20 [14:55] and in the next line [14:55] print(a + b) [14:55] this should give you 30 [14:55] kushal, done [14:55] when I am using python in text editors like sublime, Which version is used to run the commands then? [14:55] Everyone try, if you have trouble, then us here. [14:55] done [14:55] prabhu, we can discuss those later. [14:56] kushal, okay :) [14:56] done [14:56] done [14:56] done [14:56] done [14:56] done [14:56] done [14:57] done [14:57] done [14:57] You can press Ctrl+d to get out of python. [14:57] and type python3 again to get back into it. [14:58] done [14:58] kushal, yes it worked :) [14:58] done [14:58] done [14:58] kushal,we can use quit() also :) [14:59] exit() also [15:00] kushal, done [15:01] In the notebook ? [15:01] We will use http://pymbook.readthedocs.io/en/latest/ this book for our sessions. [15:01] <__rex__> ABD, terminal [15:01] Start from http://pymbook.readthedocs.io/en/latest/thebeginning.html [15:01] ABD,in terminal [15:01] ok :) [15:02] The next chapter has the details of how to install mu editor. [15:02] That will be our primary editor during the training. [15:02] http://pymbook.readthedocs.io/en/latest/mu.html [15:02] It will download a good amount, so remember that it will take time. [15:02] please read upto http://pymbook.readthedocs.io/en/latest/variablesanddatatypes.html tonight [15:02] and tomorrow. [15:03] Also discuss any issue you get here in the channel. [15:03] Remember that we will go slow. [15:03] Ending the session now. ----END CLASS----