{"id":1696,"date":"2022-02-23T03:17:16","date_gmt":"2022-02-23T03:17:16","guid":{"rendered":"http:\/\/thechotacode.com\/?p=1696"},"modified":"2022-02-23T03:22:42","modified_gmt":"2022-02-23T03:22:42","slug":"elementor-1696","status":"publish","type":"post","link":"https:\/\/thechotacode.com\/?p=1696","title":{"rendered":"PYTHON Basic in TELNET SERVER"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"1696\" class=\"elementor elementor-1696\" data-elementor-settings=\"[]\">\n\t\t\t\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d69202c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d69202c\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e049458\" data-id=\"e049458\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9f0f355 elementor-widget elementor-widget-text-editor\" data-id=\"9f0f355\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p><span style=\"color: #333300;\"><strong>I would suggest to check the post Python Basic in Desktop\/Laptop first, as that would give you good idea about the command line.<br \/><\/strong><\/span><span style=\"font-size: 13px; color: #333300;\"><strong><br \/>Here I would share how you can practice Python Programming in Telnet Server, Network Engineers usually have the Telnet\u00a0<\/strong><\/span><span style=\"font-size: 13px; color: #333300;\"><strong>Server for logging into routers which they manage. So its easy for you to practice whenever you get time also you can\u00a0<\/strong><\/span><span style=\"font-size: 13px; color: #333300;\"><strong>test many things in Network Automation.<\/strong><\/span><\/p><p><span style=\"color: #333300;\"><strong>Usually the telnet servers run on Solaris Unix OS, which you can check by below command.<\/strong><\/span><br \/><span style=\"color: #0000ff;\"><strong>rselvara@nms4:~$ uname -a<\/strong><\/span><br \/><span style=\"color: #0000ff;\"><strong>SunOS nms4.lon.osspriv.colt.net 5.11 11.3 i86pc i386 i86pc<\/strong><\/span><\/p><p><span style=\"color: #333300;\"><strong><br \/>Hence, I would walk you through some of then UNIX commands as to how to create python programs and run it.<\/strong><\/span><\/p><p><span style=\"color: #333300;\"><strong><span style=\"color: #ff0000;\">&gt;&gt;<\/span> Verify Python is installed and see version running. As you see below my telnet server has got 2.7 version of python.<\/strong><\/span><br \/><span style=\"color: #0000ff;\"><strong>Note:- You can practise the commands in python prompt however its best practice to create python file and run it to see<\/strong><\/span><br \/><span style=\"color: #0000ff;\"><strong>the outcomes when a program is executed.<\/strong><\/span><\/p><p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/python.jpg\" alt=\"\" width=\"680\" height=\"165\" \/><\/p><p><span style=\"color: #333300;\"><strong><span style=\"color: #ff0000;\"><br \/>&gt;&gt;<\/span>\u00a0Pwd will show the\u00a0 current directory\/Folder you&#8217;re working and as you see no file is present in my Directory.<\/strong><\/span><br \/><span style=\"color: #333300;\"><strong>To create python program, type below commands. Please practice below commands repeatedly until you remember.<\/strong><\/span><\/p><p><span style=\"color: #800000;\"><strong>rselvara@nms4:~$ pwd<\/strong><\/span><br \/><span style=\"color: #800000;\"><strong>\/home\/rselvara<\/strong><\/span><br \/><span style=\"color: #800000;\"><strong>rselvara@nms4:~$ ls -l\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &lt;&#8212; List of files in list format<\/strong><\/span><br \/><span style=\"color: #800000;\"><strong>total 0<\/strong><\/span><br \/><span style=\"color: #800000;\"><strong>rselvara@nms4:~$ vim learn.py<\/strong><\/span><br \/><br \/><br \/><br \/><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/Hello.png\" alt=\"\" width=\"683\" height=\"130\" \/><br \/><br \/><span style=\"color: #800000;\"><strong>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&lt;&#8212;- This will write the program.<\/strong><\/span><br \/><span style=\"color: #800000;\"><strong>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &lt;&#8212;- This will exit the command prompt and back to directory.<\/strong><\/span><br \/><span style=\"color: #800000;\"><strong>rselvara@nms4:~$ ls -l<\/strong><\/span><br \/><span style=\"color: #800000;\"><strong>total 2<\/strong><\/span><br \/><span style=\"color: #800000;\"><strong>-rw-r&#8211;r&#8211; 1 rselvara staff 55 Mar 22 17:14 learn.py<\/strong><\/span><br \/><span style=\"color: #800000;\"><strong>rselvara@nms4:~$ python learn.py<\/strong><\/span><br \/><span style=\"color: #800000;\"><strong>+++++++++<\/strong><\/span><br \/><span style=\"color: #800000;\"><strong>Hello <\/strong><\/span><br \/><span style=\"color: #800000;\"><strong>+++++++++<\/strong><\/span><br \/><span style=\"color: #800000;\"><strong>rselvara@nms4:~$<br \/><\/strong><\/span><strong><span style=\"color: #0000ff;\">Note:-\u00a0 You can edit the program in same way and save it.<\/span><\/strong><\/p><p><strong>\u00a0<\/strong><\/p><p><span style=\"color: #0000ff;\"><b>Below shown are few programs which will you help you learn the basic usage in network device automation.<\/b><\/span><\/p><p><span style=\"color: #333300;\"><b><span style=\"color: #ff0000;\">Program 1:-<\/span> How to take the input from users !!<\/b><\/span><\/p><p><span style=\"color: #333300;\"><strong>INPUT:- Below given the 3 input methods to take number and string. And can see the type of input if it is Str or Int.<\/strong><\/span><\/p><p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/input.jpg\" alt=\"\" width=\"356\" height=\"301\" \/><\/p><p><span style=\"color: #333300;\"><strong>OUTPUT:- Input() always take Integer values only, and other method consider inputs as string only however you can convert string to integer wherever you want to process for logical\u00a0<\/strong><\/span><span style=\"color: #333300;\"><strong>operation.<br \/><\/strong><\/span><br \/><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/output.jpg\" alt=\"\" width=\"503\" height=\"254\" \/><\/p><p><span style=\"color: #333300;\"><strong><span style=\"color: #ff0000;\"><br \/>Program 2:-<\/span> How you can split IP,\u00a0 store the values in variable and perform logical operation !!<\/strong><\/span><\/p><p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/pro2.jpg\" alt=\"\" width=\"1148\" height=\"252\" \/><\/p><p><span style=\"color: #333300;\"><strong><span style=\"color: #ff0000;\">Program 3:-\u00a0 &#8220;<\/span><\/strong><\/span><span style=\"color: #333300;\"><strong>If and elsif&#8221; condition based on your input given the output will be printed.<\/strong><\/span><\/p><p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/if1.jpg\" alt=\"\" width=\"1174\" height=\"363\" \/><\/p><p><span style=\"color: #333300;\"><strong><span style=\"color: #ff0000;\">Program 4:-\u00a0 <\/span><\/strong><\/span><span style=\"color: #333300;\"><strong>I will explain the use of append and extend with examples below:-<\/strong><\/span><\/p><p><span style=\"color: #003300;\"><strong><span style=\"color: #ff0000;\">&gt;&gt; <\/span>append() method adds an element to a list\/Array<\/strong><\/span><span style=\"color: #0000ff;\"><strong><br \/><u>Input:- <\/u><\/strong><\/span><br \/><span style=\"color: #0000ff;\"><strong>List1 = [&#8216;A&#8217;, &#8216;B&#8217;, &#8216;C&#8217;]<\/strong><\/span><br \/><span style=\"color: #0000ff;\"><strong>List2 = [&#8216;1,&#8217; &#8216;2&#8217;, &#8216;3&#8217;]<\/strong><\/span><br \/><span style=\"color: #0000ff;\"><strong>List2.append(List1)<\/strong><\/span><br \/><span style=\"color: #0000ff;\"><strong>print List2<\/strong><\/span><br \/><span style=\"color: #0000ff;\"><strong><br \/>Output:- [&#8216;1&#8217;, &#8216;2&#8217;, &#8216;3&#8217;, [&#8216;A&#8217;, &#8216;B&#8217;, &#8216;C&#8217;]]<br \/>So List2[0] = 1 , List2[1] = 2 , List2[2] = 3, List2[3] = [&#8216;A&#8217;, &#8216;B&#8217;,&#8217;C&#8217;]<\/strong><\/span><\/p><p><strong><span style=\"color: #ff0000;\">&gt;&gt; <\/span><span style=\"color: #003300;\">extend() method adds as list\/array element inside the List.<br \/><\/span><\/strong><strong style=\"color: #0000ff; font-size: 13px;\"><u>Input:-<\/u><br \/><\/strong><strong style=\"color: #0000ff; font-size: 13px;\">List1 = [&#8216;A&#8217;, &#8216;B&#8217;, &#8216;C&#8217;]<br \/><\/strong><strong style=\"color: #0000ff; font-size: 13px;\">List2 = [&#8216;1&#8217;, &#8216;2&#8217;, &#8216;3&#8217;]<br \/><\/strong><strong style=\"color: #0000ff; font-size: 13px;\">List2.extend(List1)<br \/><\/strong><strong style=\"color: #0000ff; font-size: 13px;\">print List2<\/strong><\/p><p><span style=\"color: #0000ff;\"><strong>Output:- [&#8216;1&#8217;, &#8216;2&#8217;, &#8216;3&#8217;, &#8216;A&#8217;, &#8216;B&#8217;, &#8216;C&#8217;]<br \/>so List2[0] = 1 , List2[1]=2, List2[2]=3, List2[3]=A, List2[4]=B, List2[5]=C\u00a0<\/strong><\/span><\/p><p><span style=\"color: #003300;\"><strong><span style=\"color: #ff0000;\">Program 5:-\u00a0<\/span>\u00a0<\/strong><\/span><span style=\"color: #003300;\"><b>While Logic is similar to FOR logic, however it has more ways to control a loop. The loop will run as long as the expression in while is correct so be careful while using it. The command &#8220;<span style=\"color: #0000ff;\">Break<\/span>&#8221; inside the &#8216;<span style=\"color: #0000ff;\">while<\/span>&#8216; will help to come out of loop. You can use this <span style=\"color: #0000ff;\">Break<\/span> and <span style=\"color: #0000ff;\">Continue<\/span> commands in &#8216;<span style=\"color: #0000ff;\">For<\/span>&#8216; Loop as well..<\/b><\/span><\/p><p><span style=\"font-family: Roboto, sans-serif; font-size: 13px; font-style: normal; font-weight: 400;\"><span style=\"font-size: 13px; font-weight: bold;\">\u00a0<\/span><\/span><\/p><p><strong><span style=\"color: #333300;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/while-300x294.jpg\" alt=\"\" width=\"300\" height=\"294\" \/><\/span><\/strong><\/p><p><strong><span style=\"color: #0000ff;\">+++++ Example 1:-\u00a0 Here the loop was running till n =2 ++++++++<\/span><\/strong><\/p><p><strong><span style=\"color: #ff0000;\"> <span style=\"color: #0000ff;\"><u>Input:- <\/u><\/span><br \/><span style=\"color: #0000ff;\">n = 5<\/span><br \/><span style=\"color: #0000ff;\">while n = &gt; 0:<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 \u00a0 \u00a0n = n &#8211; 1<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 \u00a0 \u00a0if n == 2:<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 break<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 \u00a0 \u00a0print(n)<\/span><br \/><span style=\"color: #0000ff;\">print(&#8216;Loop ended&#8217;)<\/span><br \/><\/span><\/strong><\/p><p><strong><span style=\"color: #ff0000;\"><span style=\"color: #0000ff;\"><u>Output:-<\/u><br \/>4<br \/>3<br \/>Loop ended<br \/><\/span><\/span><\/strong><\/p><p><span style=\"color: #0000ff;\"><b>+++++Example 2:- The loop was running till end n=0 however skipped next statement\u00a0when n = 2 ++++++++<\/b><\/span><\/p><p><strong><span style=\"color: #ff0000;\"> <span style=\"color: #0000ff;\"><u>Input:- <\/u><\/span><br \/><span style=\"color: #0000ff;\">n = 5<\/span><br \/><span style=\"color: #0000ff;\">while n = &gt; 0:<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 \u00a0 \u00a0n = n &#8211; 1<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 \u00a0 \u00a0if n == 2:<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 continue<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 \u00a0 \u00a0print(n)<\/span><br \/><span style=\"color: #0000ff;\">print(&#8216;Loop ended&#8217;)<\/span><br \/><\/span><\/strong><\/p><p><strong><span style=\"color: #ff0000;\"><span style=\"color: #0000ff;\"><u>Output:-<br \/><\/u>4<u><br \/>3<br \/><\/u>1<u><br \/><\/u>0<u><br \/><\/u><\/span><\/span><\/strong><strong><span style=\"color: #ff0000;\"><span style=\"color: #0000ff;\">Loop ended<br \/><\/span><\/span><\/strong><strong><span style=\"color: #ff0000;\"><span style=\"color: #0000ff;\">+++++++++++++++++++<\/span><\/span><\/strong><\/p><p><span style=\"color: #003300;\"><strong>Remember &#8216;<span style=\"color: #0000ff;\">while<\/span>&#8216; logic has to be carefully used to determine the end first. Here the loop is running till the line doesn&#8217;t have &#8216;exit-address-family&#8217;<br \/>The motive is to find network statement in complete router config, however &#8216;<span style=\"color: #0000ff;\">while<\/span>&#8216; loop helps to search till &#8216;exit-address-family&#8217; otherwise we end up searching whole config.<\/strong><\/span><\/p><p><span style=\"color: #333300;\"><strong><span style=\"color: #ff0000;\">&gt;&gt;<\/span>Print all till particular line:- however in &#8216;<span style=\"color: #0000ff;\">while<\/span>&#8216; there is more control of line reading based on expression.<\/strong><\/span><\/p><p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1388 size-full\" src=\"http:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/while1.jpg\" alt=\"\" width=\"843\" height=\"345\" srcset=\"https:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/while1.jpg 843w, https:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/while1-300x123.jpg 300w, https:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/while1-600x246.jpg 600w, https:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/while1-768x314.jpg 768w\" sizes=\"auto, (max-width: 843px) 100vw, 843px\" \/><\/p><p><span style=\"color: #333300;\"><strong><span style=\"color: #ff0000;\"><br \/>&gt;&gt;<\/span>Eliminate a line:- Here the continue statement made the Network statement skipped going to next line and made the next print of all lines till loop ends.<\/strong><\/span><\/p><p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1393 size-full\" src=\"http:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/while2.jpg\" alt=\"\" width=\"843\" height=\"340\" srcset=\"https:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/while2.jpg 843w, https:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/while2-300x121.jpg 300w, https:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/while2-600x242.jpg 600w, https:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/while2-768x310.jpg 768w\" sizes=\"auto, (max-width: 843px) 100vw, 843px\" \/><\/p><p><span style=\"color: #ff0000;\"><br \/>&gt;&gt;<\/span> <span style=\"color: #333300;\"><strong>End loop when statement found:- Here if you see as soon as our statement is found the <span style=\"color: #0000ff;\">break<\/span> ends the loop saving time cycle.<\/strong><\/span><\/p><p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1398 size-full\" src=\"http:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/while5.png\" alt=\"\" width=\"845\" height=\"335\" srcset=\"https:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/while5.png 845w, https:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/while5-300x119.png 300w, https:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/while5-600x238.png 600w, https:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/while5-768x304.png 768w\" sizes=\"auto, (max-width: 845px) 100vw, 845px\" \/><\/p><p><strong><span style=\"color: #ff0000;\"><br \/>Program 6:-\u00a0 <\/span><\/strong><span style=\"color: #333300;\"><strong>Using For logic, to read high volume of data and printing the necessary data in your output.<br \/>As you see , full BGP config is read in the input and stored in array with append of each line in variable &#8216;A&#8217; by a For loop.<\/strong><\/span><\/p><p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/funct.jpg\" alt=\"\" width=\"943\" height=\"350\" \/><\/p><p><span style=\"color: #333300;\"><strong>As you see below, based on the input config given AS number and Neighbor IP data is taken out. <br \/>Hence you can use complete router config as input and find whatever details you want in the output.<\/strong><\/span><\/p><p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/thechotacode.com\/wp-content\/uploads\/2021\/03\/func2.jpg\" alt=\"\" width=\"931\" height=\"332\" \/><\/p><p><span style=\"color: #333300;\"><b>Hope this has given a good idea about basic handling of router config in networking and make your program to generate the desired output, from this learning can you please try to generate a program that would fetch the output as shown in the thumbnail of this post. I would be glad if you would make it, and progress towards further logical way of handling files like text, excel data with python.<\/b><\/span><\/p><p><span style=\"color: #333300;\"><b>I would have more post of some practical uses in this section, where you would get an idea and develop more of it.<\/b><\/span><\/p><p><span style=\"color: #333300;\"><b>Hope you like it, Wish you all the best!!<\/b><\/span><\/p><p><span style=\"color: #333300;\"><b><span id=\"post-ratings-1696\" class=\"post-ratings\" data-nonce=\"3f93d44c81\"><img decoding=\"async\" id=\"rating_1696_1\" src=\"https:\/\/thechotacode.com\/wp-content\/plugins\/wp-postratings\/images\/stars_crystal\/rating_on.gif\" alt=\"1 Star\" title=\"1 Star\" onmouseover=\"current_rating(1696, 1, '1 Star');\" onmouseout=\"ratings_off(5, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img decoding=\"async\" id=\"rating_1696_2\" src=\"https:\/\/thechotacode.com\/wp-content\/plugins\/wp-postratings\/images\/stars_crystal\/rating_on.gif\" alt=\"2 Stars\" title=\"2 Stars\" onmouseover=\"current_rating(1696, 2, '2 Stars');\" onmouseout=\"ratings_off(5, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img decoding=\"async\" id=\"rating_1696_3\" src=\"https:\/\/thechotacode.com\/wp-content\/plugins\/wp-postratings\/images\/stars_crystal\/rating_on.gif\" alt=\"3 Stars\" title=\"3 Stars\" onmouseover=\"current_rating(1696, 3, '3 Stars');\" onmouseout=\"ratings_off(5, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img decoding=\"async\" id=\"rating_1696_4\" src=\"https:\/\/thechotacode.com\/wp-content\/plugins\/wp-postratings\/images\/stars_crystal\/rating_on.gif\" alt=\"4 Stars\" title=\"4 Stars\" onmouseover=\"current_rating(1696, 4, '4 Stars');\" onmouseout=\"ratings_off(5, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img decoding=\"async\" id=\"rating_1696_5\" src=\"https:\/\/thechotacode.com\/wp-content\/plugins\/wp-postratings\/images\/stars_crystal\/rating_on.gif\" alt=\"5 Stars\" title=\"5 Stars\" onmouseover=\"current_rating(1696, 5, '5 Stars');\" onmouseout=\"ratings_off(5, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/> (<strong>3<\/strong> votes, average: <strong>5.00<\/strong> out of 5)<br \/><span class=\"post-ratings-text\" id=\"ratings_1696_text\"><\/span><\/span><span id=\"post-ratings-1696-loading\" class=\"post-ratings-loading\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thechotacode.com\/wp-content\/plugins\/wp-postratings\/images\/loading.gif\" width=\"16\" height=\"16\" class=\"post-ratings-image\" \/>Loading&#8230;<\/span><\/b><\/span><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>I would suggest to check the post Python Basic in Desktop\/Laptop first, as that would give you good idea about the command line. Here I would share how you can practice Python Programming in Telnet Server, Network Engineers usually have the Telnet&nbsp;Server for logging into routers which they manage. So its easy for you to&#8230;<\/p>\n","protected":false},"author":2,"featured_media":1271,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[10],"tags":[],"class_list":["post-1696","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codes","wpcat-10-id"],"_links":{"self":[{"href":"https:\/\/thechotacode.com\/index.php?rest_route=\/wp\/v2\/posts\/1696","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thechotacode.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thechotacode.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thechotacode.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thechotacode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1696"}],"version-history":[{"count":5,"href":"https:\/\/thechotacode.com\/index.php?rest_route=\/wp\/v2\/posts\/1696\/revisions"}],"predecessor-version":[{"id":1701,"href":"https:\/\/thechotacode.com\/index.php?rest_route=\/wp\/v2\/posts\/1696\/revisions\/1701"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thechotacode.com\/index.php?rest_route=\/wp\/v2\/media\/1271"}],"wp:attachment":[{"href":"https:\/\/thechotacode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thechotacode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thechotacode.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}