{"id":6598,"date":"2022-02-06T11:01:51","date_gmt":"2022-02-06T05:31:51","guid":{"rendered":"https:\/\/www.interviewbit.com\/blog\/?p=6598"},"modified":"2023-08-16T15:07:35","modified_gmt":"2023-08-16T09:37:35","slug":"python-commands","status":"publish","type":"post","link":"https:\/\/www.interviewbit.com\/blog\/python-commands\/","title":{"rendered":"Python Commands List"},"content":{"rendered":"\n<div class=\"gutentoc tocactive nostyle\"><div class=\"gutentoc-toc-wrap\"><div class=\"gutentoc-toc-title-wrap\"><div class=\"gutentoc-toc-title\">Table Of Contents<\/div><div id=\"open\" class=\"toggletwo\">show<\/div><\/div><div id=\"toclist\"><div class=\"gutentoc-toc__list-wrap\"><ul class=\"gutentoc-toc__list\"><li><a href=\"#introduction\">Introduction<\/a><\/li><li><a href=\"#python-commands-list\">Python Commands List<\/a><\/li><ul class=\"gutentoc-toc__list\"><li><a href=\"#basic-python-commands-you-must-know\">Basic Python Commands You Must Know<\/a><\/li><li><a href=\"#intermediate-python-commands\">Intermediate Python Commands<\/a><\/li><li><a href=\"#advanced-python-commands-list\">Advanced Python Commands List<\/a><\/li><\/ul><li><a href=\"#conclusion\">Conclusion<\/a><\/li><li><a href=\"#frequently-asked-questions\">Frequently Asked Questions<\/a><\/li><li><a href=\"#additional-resources\">Additional resources<\/a><\/li><\/ul><\/div><\/div><\/div><\/div>\n\n\n\n<h2 id=\"introduction\">Introduction<\/h2>\n\n\n\n<p>Python is one of the most popular programming languages. It is an interpreted high-level general-purpose language. Python is developed by Guido van Rossum in 1991. Its syntax is very beginner-friendly and easy to learn. That\u2019s the reason why most people suggest python language to beginners as their first programming language to learn. In this post, we are going to discuss <strong>top python commands<\/strong> that can make your <a href=\"https:\/\/www.interviewbit.com\/online-python-compiler\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>python learning journey<\/strong><\/a> easier.&nbsp;<\/p>\n\n\n\n<p>In the Python programming language, commands basically refer to different functions or methods that we can execute on the python shell to work them as commands. According to the official documentation of <a href=\"https:\/\/docs.python.org\/3\/\">Python<\/a>, there are no \u201ccommands\u201d in Python but we have different kinds of functions like input(), type(), len(), so on and so forth. So in this post, we\u2019re going to use the terms commands and functions interchangeably. Now, let\u2019s get started with the python commands list and discuss each command in detail.<\/p>\n\n\n\n<h2 id=\"python-commands-list\">Python Commands List<\/h2>\n\n\n\n<h3 id=\"basic-python-commands-you-must-know\">Basic Python Commands You Must Know<\/h3>\n\n\n\n<p>Here are the list of basic python commands.<\/p>\n\n\n\n<h4 id=\"pip-install-command\">pip install command<\/h4>\n\n\n\n<p>pip is a package manager which is written in <strong><a href=\"https:\/\/www.scaler.com\/topics\/python\/\" target=\"_blank\" rel=\"noreferrer noopener\">Python language<\/a><\/strong>. It is used to install and manage software packages. The pip install command is used to install any software package from an online repository of public packages, called the Python Package Index. To run this command in windows you need to open your Windows PowerShell and then use the following syntax to install any package.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> pip install package-name<br><strong>Example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img  loading=\"lazy\"  width=\"952\"  height=\"366\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\"wp-image-6601 pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"(max-width: 952px) 100vw, 952px\"  data-pk-src=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image6.png\"  data-pk-srcset=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image6.png 952w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image6-300x115.png 300w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image6-768x295.png 768w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image6-380x146.png 380w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image6-550x211.png 550w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image6-800x308.png 800w\" ><\/figure>\n\n\n\n<h4 id=\"print-command\">print command<\/h4>\n\n\n\n<p>print command is used to print a message on the screen or other standard output device. The message can be a string or any other object. The print command can be used to print any type of object like integer, string, list, tuple, etc.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax: <\/strong>print(object)<br><strong>Example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img  loading=\"lazy\"  width=\"1024\"  height=\"434\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\"wp-image-6602 pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"(max-width: 1024px) 100vw, 1024px\"  data-pk-src=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image2-1024x434.png\"  data-pk-srcset=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image2-1024x434.png 1024w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image2-300x127.png 300w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image2-768x325.png 768w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image2-380x161.png 380w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image2-550x233.png 550w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image2-800x339.png 800w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image2-1160x491.png 1160w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image2.png 1162w\" ><\/figure>\n\n\n\n<div class=\"wp-container-1 wp-block-buttons\"><\/div>\n\n\n\n<h4 id=\"type-command\">type command<\/h4>\n\n\n\n<p>type command is used to check the type or class of an object.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax: <\/strong>type(object)<br><strong>Example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img  loading=\"lazy\"  width=\"271\"  height=\"163\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\"wp-image-6603 pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image21.png\" ><\/figure>\n\n\n\n<h4 id=\"range-command\">range command<\/h4>\n\n\n\n<p>range command is used to generate a sequence of integers starting from 0 by default to n where n is not included in the generated numbers. We use this command in for loops mostly.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax: <\/strong>range(start, stop, step)&nbsp;<\/p>\n\n\n\n<ul><li><em>start<\/em> refers to the starting of range (Optional; 0 by default )<\/li><li><em>stop<\/em> refers to the number before which you want to stop (Mandatory)<\/li><li><em>step<\/em> refers to the increment count (Optional; 1 by default)<\/li><\/ul>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped\">\n<figure class=\"wp-block-image size-full\"><img  loading=\"lazy\"  width=\"288\"  height=\"300\"  data-id=\"6605\"   src=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image27.png\"  alt=\"\"  class=\"wp-image-6605 pk-lazyload\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  data-pk-sizes=\"auto\"  data-pk-src=\"\" ><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img  loading=\"lazy\"  width=\"287\"  height=\"307\"  data-id=\"6606\"   src=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image3.png\"  alt=\"\"  class=\"wp-image-6606 pk-lazyload\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"(max-width: 287px) 100vw, 287px\"  data-pk-src=\"\"  data-pk-srcset=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image3.png 287w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image3-280x300.png 280w\" ><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img  loading=\"lazy\"  width=\"312\"  height=\"311\"  data-id=\"6604\"   src=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image43.png\"  alt=\"\"  class=\"wp-image-6604 pk-lazyload\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"(max-width: 312px) 100vw, 312px\"  data-pk-src=\"\"  data-pk-srcset=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image43.png 312w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image43-300x300.png 300w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image43-150x150.png 150w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image43-80x80.png 80w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image43-110x110.png 110w\" ><\/figure>\n<\/figure>\n\n\n\n<p><strong>Note:<\/strong> If you provide two parameters to range() function, it will always consider them as (start,stop) and not as (stop,step).&nbsp;<\/p>\n\n\n\n<h4 id=\"round-command\">round command<\/h4>\n\n\n\n<p>round command is used to round a number to a given precision in decimal digits. That means if you have so many digits after decimal in a float point number then you can use the round command to round off the specified number. You can mention how many digits you want after the decimal point.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax: <\/strong>round(number, digits)&nbsp;<\/p>\n\n\n\n<ul><li><em>number<\/em> refers to the floating-point number.&nbsp;<\/li><li><em>digits <\/em>refer to the count of digits you want after the decimal point. (Optional; By default 0)<\/li><\/ul>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img  loading=\"lazy\"  width=\"377\"  height=\"367\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\"wp-image-6609 pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"(max-width: 377px) 100vw, 377px\"  data-pk-src=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image36.png\"  data-pk-srcset=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image36.png 377w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image36-300x292.png 300w\" ><\/figure>\n\n\n\n<h4 id=\"input-command\">input command<\/h4>\n\n\n\n<p>input command is used to take input from the user. The flow of the program will be stopped until the user has entered any value. Whatever the user enters it will be converted into a string by the input function. If you want to take an integer as input then you have to convert it explicitly.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax: <\/strong>input(message)<\/p>\n\n\n\n<p><em>message <\/em>refers to the text you want to display to the user. (Optional)<\/p>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img  loading=\"lazy\"  width=\"365\"  height=\"243\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\"wp-image-6611 pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"(max-width: 365px) 100vw, 365px\"  data-pk-src=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image28.png\"  data-pk-srcset=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image28.png 365w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image28-300x200.png 300w\" ><\/figure>\n\n\n\n<h4 id=\"len-command\">len command<\/h4>\n\n\n\n<p>len command or len() function is used to get the number of items in an object. If the object is a string then len() function returns the number of characters present in it. If the object is a list or tuple it will return the number of elements present in that list or tuple. len() gives an error if you try to pass an integer value to it.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> len(object)<\/p>\n\n\n\n<p><em>object <\/em>of which you want to find the length<em> <\/em>(Required)<\/p>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img  loading=\"lazy\"  width=\"491\"  height=\"347\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\"wp-image-6612 pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"(max-width: 491px) 100vw, 491px\"  data-pk-src=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image14.png\"  data-pk-srcset=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image14.png 491w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image14-300x212.png 300w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image14-380x269.png 380w\" ><\/figure>\n\n\n\n<h4 id=\"loop-commands\">Loop commands<\/h4>\n\n\n\n<p>In python, we have two primitive loop commands namely while and for. The <em>while <\/em>loop command is used to execute a set of statements as long as the given condition is true.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax of while loop:<\/strong> while condition:<br>                                     statements<br>                                     update iterator<\/p>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img  loading=\"lazy\"  width=\"281\"  height=\"307\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\"wp-image-6614 pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"(max-width: 281px) 100vw, 281px\"  data-pk-src=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image26.png\"  data-pk-srcset=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image26.png 281w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image26-275x300.png 275w\" ><\/figure>\n\n\n\n<p>The for loop command is used to execute a set of statements by iterating over a sequence. This sequence can be a list, tuple, string, dictionary, etc.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax of for loop:<\/strong> for x in sequence:<br>                                 statements<\/p>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img  loading=\"lazy\"  width=\"342\"  height=\"206\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\"wp-image-6615 pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"(max-width: 342px) 100vw, 342px\"  data-pk-src=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image35.png\"  data-pk-srcset=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image35.png 342w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image35-300x181.png 300w\" ><\/figure>\n\n\n\n<h3 id=\"intermediate-python-commands\">Intermediate Python Commands<\/h3>\n\n\n\n<h4 id=\"string-commands\">String Commands<\/h4>\n\n\n\n<p>In the python programming language, we have various string commands that we can use on string objects. These commands do not change the original string object, they just return a new object. Some of the most important string functions are:&nbsp;<\/p>\n\n\n\n<p>isalnum(): It checks whether all the characters of a given string are alphanumeric or not. It returns a boolean value.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> stringname.isalnum()<\/p>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img  loading=\"lazy\"  width=\"389\"  height=\"123\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\"wp-image-6616 pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"(max-width: 389px) 100vw, 389px\"  data-pk-src=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image1.png\"  data-pk-srcset=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image1.png 389w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image1-300x95.png 300w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image1-380x120.png 380w\" ><\/figure>\n\n\n\n<h4 id=\"capitalize\">capitalize()<\/h4>\n\n\n\n<p>capitalize() function changes the first character of the string to uppercase if it\u2019s lowercase. If the first character is uppercase or an integer or any special character, it doesn\u2019t do anything.<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> stringname.capitalize()<\/p>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img  loading=\"lazy\"  width=\"468\"  height=\"204\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\"wp-image-6617 pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"(max-width: 468px) 100vw, 468px\"  data-pk-src=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image1-1.png\"  data-pk-srcset=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image1-1.png 468w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image1-1-300x131.png 300w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image1-1-380x166.png 380w\" ><\/figure>\n\n\n\n<h4 id=\"find\">find()<\/h4>\n\n\n\n<p>find() command is used to search for a substring in a string. It returns the index of the first occurrence of the substring if it is present otherwise it returns -1.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> string.find(substring)<\/p>\n\n\n\n<ul><li><em>string<\/em> refers to the string in which you want to search.<\/li><li><em>substring<\/em> refers to the value that you want to search.<\/li><\/ul>\n\n\n\n<p><strong>Example:<\/strong>&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh5.googleusercontent.com\/apAdiAET6RrLPLWhbR1tsL8Uu5FBgA3QGlN0irNoutOu5hAMzEytlymQiKMA0tLtyqMU7SxB3RQei9IEF5KU9hcDn6Z-Bytr3Vicz2nBReSpdJcZDQAAr_a17BlRAf4xVguaha7j\" ><\/figure>\n\n\n\n<ol><li>count(): count() function returns the count of occurrences of a substring in a string object.<\/li><\/ol>\n\n\n\n<p><strong>Syntax:<\/strong> stringname.count(substring, start, end)<\/p>\n\n\n\n<ul><li><em>stringname<\/em> refers to the string in which you want to search.<\/li><li><em>substring<\/em> refers to the value whose count you want to find.<\/li><li><em>start <\/em>refers to that starting index within the string where search starts (Optional)<\/li><li><em>end<\/em> refers to that ending index within the string where the search ends (Optional)<\/li><\/ul>\n\n\n\n<p><strong>Example:<\/strong>&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh6.googleusercontent.com\/6zWl9lvsnluseNc9khl4UzygzXfpDttLyZ3958-lvuBUKHcHMApysBPzLiH-XmpFrI0IOoqfaaSExt1xf4Jr2drWgDdqhmvtm2KzctDqnCZXq2RL4yEn2qX9CgOx_na_F3sGKT6T\" ><\/figure>\n\n\n\n<h4 id=\"center\">center()<\/h4>\n\n\n\n<p>center command is used to align a string in the center, using a specified character (by default it is space) as the fill character.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> string.center(length, character)<\/p>\n\n\n\n<ul><li><em>string<\/em> is the string that you want to align in center<\/li><li><em>length<\/em> is the full length taken by the new string in which both sides will be filled by <em>character<\/em> and in the center, we will have the original string.<\/li><li><em>character<\/em> refers to the character used to fill the missing space on each side. Default is &#8221; &#8221; (space).<\/li><\/ul>\n\n\n\n<p><strong>Example:<\/strong>&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img  loading=\"lazy\"  width=\"1024\"  height=\"503\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\"wp-image-6618 pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"(max-width: 1024px) 100vw, 1024px\"  data-pk-src=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image32-1024x503.png\"  data-pk-srcset=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image32-1024x503.png 1024w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image32-300x147.png 300w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image32-768x377.png 768w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image32-1536x754.png 1536w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image32-380x187.png 380w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image32-550x270.png 550w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image32-800x393.png 800w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image32-1160x569.png 1160w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2022\/02\/image32.png 1595w\" ><\/figure>\n\n\n\n<h4 id=\"list-commands\">List Commands<\/h4>\n\n\n\n<p>Just like a string we have various commands for list objects as well. Lists are used to multiple elements in a single object. We can use lists to store elements of different data types. Some of the most important list methods are:&nbsp;<\/p>\n\n\n\n<p>append(): append command is used to add an element at the end of the list.<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> list.append(element)<\/p>\n\n\n\n<ul><li><em>list<\/em> is the list object in which you want to add an element<\/li><li><em>element<\/em> refers to the new item that you want to add to the list<\/li><\/ul>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh3.googleusercontent.com\/aLTC3LxNxieHbWkb6Vhp_nh8cY3i9TA37sKAsbmS8bmadzebL0B3bNNiuHh9AaWxAFAogykjIPH6h-hcSL4c4Vv5s6_LijpPRO9HWNxm57aKDrFjlgMmvDXGPL1fgmlkJufUcQ7I\" ><\/figure>\n\n\n\n<h4 id=\"copy\">copy()<\/h4>\n\n\n\n<p>copy() is used to create a new copy of the list object. It returns a new list object.<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> list.copy()<\/p>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh6.googleusercontent.com\/aDSmWK1fM8utzvgRlWX9SaxmYPsa2tJf8L4iucAiyxbu9heIcKoqR7PfyxnKO3qnV6jikRQHLpppoA16VLYetEzrhWeuxL96cnUWfpMMJGIGkrCKwf3fOv7wD8ZUFb381ShMMr77\" ><\/figure>\n\n\n\n<h4 id=\"insert\">insert()<\/h4>\n\n\n\n<p>insert command is used to add an element at a specified position in the list object. It takes two parameters position and element.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> listname.insert(position, element)<\/p>\n\n\n\n<ul><li><em>position<\/em> at which you want to insert a new element. If you give a position greater than the number of elements in the list, it will always insert at the end.<\/li><li><em>element<\/em> refers to the new element that needs to be added.<\/li><\/ul>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh4.googleusercontent.com\/ghcn3JKDnRKa5ADCb_k6CiD5rIuLLplubTuNDDK8Z5Q5DJRJwJXxKPDXPuo_ajCWlQsioJCB-r4A1SbQNIl-EE2UstslcTFxWjmKYLeIXzKII1gKr5CJu9pTZtLK0Gq1kA9WKmkd\" ><\/figure>\n\n\n\n<h4 id=\"pop\"><span id=\"pop-2\">pop()<\/span><\/h4>\n\n\n\n<p>pop() method is used to remove an element from a specified position in the list. It returns the element after removing it from the list.<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> listname.pop(position)<\/p>\n\n\n\n<p><em>position<\/em> from which you want to remove the element.<\/p>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh6.googleusercontent.com\/VC0F3PaZM6iev51ATj1Zyd2bD_5jx4yhHCArGuqCrGAvsuKBbl2-02i9zhS3D5BJmxoOfqwO877gVWBn5IdykpeOLvqGoUk2opYl626NIw2OOd4VCwr-PiLxMCQS-lUjuVuMRHEw\" ><\/figure>\n\n\n\n<h4 id=\"reverse\">reverse()<\/h4>\n\n\n\n<p>reverse method reverses the order of all elements in the list. It modifies the original list object and it doesn\u2019t return anything.<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> list.reverse()<\/p>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh6.googleusercontent.com\/qvV0xqRzD4RhdtcTLMjp-QVMBJi2c0NEPllJ1Y6WvKmVDcIxC6Q3_h0zNFZLoki_B0tBEWybI4ouomJ22AjF_NRrGnlI7NKAwrGB8ZDx-0bHnWnsq8y803yLoM8T7Z1uFNHRubD1\" ><\/figure>\n\n\n\n<h4 id=\"sort\">sort()<\/h4>\n\n\n\n<p>sort method is used to sort the elements of the list in ascending order by default.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> list.sort()<\/p>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh6.googleusercontent.com\/JxjceCvN7hEYebW0Do4zx0qWGyjJdxaJgLEp7pFMwrTIkHqvyuGitusRSw6i-zyfocJJ7EthRNoJ3bSxMEDPu9ugE7D-t0x09ibCgasNZmXp_UtuKGho9_F3TM-srb32x9hSImzU\" ><\/figure>\n\n\n\n<h4 id=\"tuple-commands\">Tuple Commands<\/h4>\n\n\n\n<p>Tuple is a built-in data type that is used to store multiple elements in a single variable. Tuple objects are ordered, and immutable. There are only two built-in tuple methods which are as follows:&nbsp;<\/p>\n\n\n\n<p>count(): count method is used to count the occurrences of an element in the tuple.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> tuple.count(element)<\/p>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh4.googleusercontent.com\/GoAw-TSq2SolESVR7mc5gW6syyRd3GqOIbadd5vrTHVrq4PHAvZnqr85OlUrEWR1NX1Ase_1JOUM8DAEDE6ET0rLV9G1gHZDptPAHClfXYSLvSMm4K41mOfff6ni5dYNVbVzxKme\" ><\/figure>\n\n\n\n<h4 id=\"index\">index()<\/h4>\n\n\n\n<p>This method is used to find the index of the first occurrence of an element. If the element is not found in the whole tuple then it will raise a ValueError.<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> tuple.index(element)<\/p>\n\n\n\n<ul><li><em>tuple<\/em> is the tuple object in which you want to search an element<\/li><li><em>element<\/em> refers to the item that you wanna search<\/li><\/ul>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh6.googleusercontent.com\/hh9UP6FmmKs2mhH2mXBpW0jRYZ7KzAAKsw_lVq8X1I-BgyawoxaNBaQ17CstwPQMSQ1ofhMmcHcaaYI31-rbQokGrpTioIrxU14TKJUK001fZWq-9VHenaspHrXs3oyRWjvQJqVW\" ><\/figure>\n\n\n\n<h3 id=\"advanced-python-commands-list\">Advanced Python Commands List<\/h3>\n\n\n\n<h4 id=\"set-commands\">Set Commands<\/h4>\n\n\n\n<p>Sets are also used to store multiple elements in a single object but they do not allow duplicate elements. Sets are unordered and unindexed. That means if you print all elements of a set they will get printed in random order. Once set is created you can not modify the elements but you can add new elements or can also remove existing elements. Now, let\u2019s discuss some important set commands that python provides as built-in methods.<\/p>\n\n\n\n<p>add(): add command is used to add a new element in the set.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> setname.add(element)<\/p>\n\n\n\n<ul><li><em>setname<\/em> is the name of that set variable in which you want to add a new element.<\/li><li><em>element<\/em> refers to the new item that you want to add.&nbsp;<\/li><\/ul>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh6.googleusercontent.com\/1lqML0pOmwunTwdjKujQ-2sWTU2k0DYtwhIebcfzi_sRJWfM087R-0seaLok6rnH0-mSpjJMrpDj5672vTJ8Gvqwid6CBGj_S3dv2FYx2nWe-sIAkUMXt_1EcyckT63EcNL3uP5b\" ><\/figure>\n\n\n\n<h4 id=\"clear\">clear()<\/h4>\n\n\n\n<p>clear removes all the elements of a set. It does not take any parameters.<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> setname.clear()<\/p>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh6.googleusercontent.com\/HfGgPRmyzHi5YEVN5An9AsXC6Mz5mpO_3DlEFEqlcyvkOBuyZtotKqfv2-5FjBKNxaOMWfZhiqBsYWRe5lDKeg1HDGiUIFg09tH-KtULiJ-4jaKRSHpfNd9ownksw1GS4Ap1FhNK\" ><\/figure>\n\n\n\n<h4 id=\"discard\">discard()<\/h4>\n\n\n\n<p>discard is used to remove the specified element from the set. If the specified element is not found in the set it will not give an error.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> setname.discard(element)<\/p>\n\n\n\n<ul><li><em>setname<\/em> is the name of that set variable from which you want to remove an element.<\/li><li><em>element<\/em> refers to the element that you want to remove.<\/li><\/ul>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh6.googleusercontent.com\/UvHcnVzygU08XycW4FZOt8f_r7ZUREMoHfhF1JCr_NqN4MFxLiEwOf7KblkYuWqkgzRaECWbQazegG9nkPUHUmDyaDxUMFn5WiKWZW-VPzt9_guRdWPKRTW35RFBe7dZNVxOVHlI\" ><\/figure>\n\n\n\n<h4 id=\"remove\">remove()<\/h4>\n\n\n\n<p>remove command is also used to remove a specified element from the set but it is different from discard because remove will give an error if the specified element is not found in the set.<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> setname.remove(element)<\/p>\n\n\n\n<ul><li><em>setname<\/em> is the name of that set variable from which you want to remove an element.<\/li><li><em>element<\/em> refers to the element that you want to remove.<\/li><\/ul>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh5.googleusercontent.com\/JS2ZFHECNzrOImxg7BUmqLtHZKIAefNb7hGe-zIjAswV0UPobXc2a-vdnx7tutAMqkl95HthyiONzxn1jOzie4fhEwOqNX3m1j7ue6EpL95P4kyyZo46chcAMf-S0OHOqQkmExGx\" ><\/figure>\n\n\n\n<h4 id=\"difference\">difference()<\/h4>\n\n\n\n<p>difference method is used to get a set that contains the difference of two sets. The difference of sets means it will have only those elements that are present in only one set and not in another set. Suppose we have two sets A and B. Set A has {1,2,3} and set B has {2, 4, 6}. Then the difference of A and B will be {1,3}.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> setA.difference(setB)<\/p>\n\n\n\n<ul><li>Elements of setB will be removed from setA if present.<\/li><\/ul>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh5.googleusercontent.com\/2JQCaoFSk-dPIeP6b47I2DUmG9d0aqBvhp0jkr4nR-Hg8f-gv7d0CMF6mdDe0gVJAO_fDCgz6OM2lrSaTujij5-wqnAjC_DTpziE8KvokdDf4wwklVV41HvpStZ2xf-SgQf5DwWU\" ><\/figure>\n\n\n\n<h4 id=\"difference_update\">difference_update()<\/h4>\n\n\n\n<p>difference_update method is used to get a set of elements that are present in the first set and not common in both sets. That means it removes the elements that exist in both sets. It does not return a new set, it just removes common elements from the first set.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> setA.difference_update(setB)<\/p>\n\n\n\n<ul><li>Elements that exist in both setA and setB will be removed from setA.<\/li><\/ul>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh3.googleusercontent.com\/A5eUhouSzJVRIfaaZBgicC-MZsaR5FeGl1j2JhA2SCwYoeb3n-O8nmw0KZSLALdm1nG2jkPAgPi9eAQ4z9FPZXDMdk4cOmYbupiPs5QIczOz82cjIqgs3ZGA_pujlDWHt7AKGEuO\" ><\/figure>\n\n\n\n<h4 id=\"intersection\">intersection()<\/h4>\n\n\n\n<p>intersection method returns a set having elements that exist in all the specified sets.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh4.googleusercontent.com\/L5ArzckRjIDlKnbGJMdnBAxFdJZzdhKGXgNf4qhHx-S97aFiPBYbpmmf-DdRlVtBIEc8YyMVro72nAAiPPHkz5Aw6Y0J43PyKtzeEKxa22jbMu2D-9mhhxw1nZEYqniB5SiLMQqc\" ><\/figure>\n\n\n\n<p><strong>Syntax:<\/strong> set.intersection(set1, set2, \u2026 setn)<\/p>\n\n\n\n<ul><li>Set of elements that exist in the set, set1, set2, \u2026 setn will be returned.<\/li><\/ul>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh3.googleusercontent.com\/cIYBly0MXp_LOiCI76qRrkxhvzgkq4JTlwuh40l7Fk9VXSxGfbVHBDbenTxJRyZPYa4K9ihw5qMnpjg9mqw47TqdfSXq4_tplb7ocQVmW3etMQwkE6K0C3eGm7lQ67q2FDLgUesp\" ><\/figure>\n\n\n\n<h4 id=\"issubset\">issubset()<\/h4>\n\n\n\n<p>issubset method checks whether all elements of set A are present in set B or not. It returns a boolean value.<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> setA.issubset(setB)<\/p>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh4.googleusercontent.com\/uUP1Fh3ZjmZVVxRBC84FOCp17Vv8PrC1lkHpFQjzqws28uopIuSfB64xxHP_ZQZG9xmK-aE9SoiWzWjaNYgINY6_Pg32q3utwdA3xl3EDCxdDpyrnw1fO85QTGkX4UtFB2q4iuSm\" ><\/figure>\n\n\n\n<h4 id=\"symmetric_difference\">symmetric_difference()<\/h4>\n\n\n\n<p>This method returns a set containing elements from both the sets except those that are common in both sets.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img  loading=\"lazy\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"257\"  height=\"193\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh4.googleusercontent.com\/0IKx0iXb0bnNTORNKaXM3IjPRr6oaWJB_7kqRuTRrR9TblU4DBSDCY294A1yas-ze38a5HyYD3gW5w6bqkiCr6vOFAA9gXV6sGpjyP5jpHu3fNmEq2i_edCOmpF8avGM-L0W8PLy\" ><\/figure>\n\n\n\n<p><strong>Syntax:<\/strong> setA.symmetric_difference(setB)<\/p>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img  loading=\"lazy\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"384\"  height=\"362\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh4.googleusercontent.com\/fYW5BdMrjBM2KeQ7IBBWzmhFPGdKYgAorL58YUQlkAWlpwYUOySptR-eCAaT-M3UxI7O8ZL33Liw9RMQtA-5SD8VqIrfjMjjYsW0uJK93pGMx64BMjo-7mE3rTjJ1M4z_u-gqIvA\" ><\/figure>\n\n\n\n<h4 id=\"union\">union()<\/h4>\n\n\n\n<p>union method returns a set containing all elements from both sets, except the duplicated ones.<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> setA.union(setB)<\/p>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh4.googleusercontent.com\/5k1-MvSTBrDJg_I9xpnHAUxSjUB171qDV-IZWOtFotGCgvH5LKBl-oFytIU_UiIUFUWsA0PP0KUk8s-G86W22Qgx90zWtQyl0dsYkgXBkdzT2de2g9NC49xU7JmFOoPF6HqW-EAr\" ><\/figure>\n\n\n\n<h4 id=\"dictionary-commands\">Dictionary Commands<\/h4>\n\n\n\n<p>Dictionary is a built-in type in Python. It is used to store key-value pairs. It is ordered, modifiable, and does not allow duplicate keys. That means in a dictionary we can not add two pairs having the same value of keys. Python provides a set of built-in methods that we can use on dictionary objects.&nbsp;<\/p>\n\n\n\n<p>fromkeys(): fromkeys() method is used to generate a dictionary with specified keys and a specified value.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> dict.fromkeys(keys, value)<\/p>\n\n\n\n<ul><li><em>keys<\/em> is the tuple or list of key elements.<\/li><li><em>value <\/em>refers to the value which would be paired with all the specified keys.<\/li><\/ul>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh3.googleusercontent.com\/uDBTjD8vkxCYwdxBMxWveDn-WUNbk1RBBFgxoXuC_KmLNh7kyOO04IJBbAh8mXLTbts8piEasVu6_6_3JIDMdtIbBUzasPCUajjmY8TuVO8C4LwFF7Gyve3D8ek0uVUMrcPIIFSA\" ><\/figure>\n\n\n\n<h4 id=\"get\">get()<\/h4>\n\n\n\n<p>get method is used to get a value of the specified key. If a key is not found in the dictionary it will return nothing unless we specify something in the parameters.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> dictionary.get(key, value)<\/p>\n\n\n\n<ul><li><em>dictionary<\/em> is the name of the dictionary object in which you want to search.&nbsp;<\/li><li><em>key <\/em>refers to the key that you want to search in the dictionary.<\/li><li>value is the value that would be returned if the key is not found in the dictionary.<\/li><\/ul>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh3.googleusercontent.com\/4jsli3r6BksT8NZAnovk5XaEnnwttxZK84RHCo3C0d-XeGkwGVJeD2dx5ff5QlcUgpiHgzMFf60IePSnnrdGxyzWEcBqu9mN82mKB-WL-cEdgc66chOcfXHvugarFMOfjtc-pzng\" ><\/figure>\n\n\n\n<h4 id=\"items\">items()<\/h4>\n\n\n\n<p>items method is used to display the dictionary elements. It will display all the key-value pairs present in the dictionary. It returns a view object which will contain all the key-value pairs as tuples in a list. It does not take any parameters.<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> dictionary.items()<\/p>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh3.googleusercontent.com\/09DMN0pEDKmLpa0fvgOW0fYrxYmbbSn2qzFcQr73aKSG8llCJPX4OPxWpgEkmXR7uXGnaAN_N9oiFks26MqPreKxhzwSn0G142r1HGJ42G6tOk6vb7aqTw9H8N2tqw600DF2fzDe\" ><\/figure>\n\n\n\n<h4 id=\"keys\">keys()<\/h4>\n\n\n\n<p>keys method is used to get all the keys present in the dictionary. It returns a view object containing all keys of the dictionary as a list. It does not take any parameters.<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> dictionary.keys()<\/p>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh3.googleusercontent.com\/Psx5ukxNn213IwWAmScPI0K1G9avUPAFMG4ldobzO3h43a8zynJTunnwhFZ5shHh8csNt9nRdBRW58OzSSniyL2XBd-bHcPbgqH0PjNy9RwfiNuJr3qFuJWtfmd0ISOm1vMjvrZR\" ><\/figure>\n\n\n\n<h4 id=\"values\">values()<\/h4>\n\n\n\n<p>values method is used to get all the values present in the dictionary. It returns a view object containing all values of the dictionary as a list. It does not take any parameters.<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> dictionary.values()<\/p>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh3.googleusercontent.com\/ojAgqrRrkPGWcom-UL0tW4-yAzCFuLfUBRNktnDgKgDgv9uCwWh_tWwjK2m7A7jpDbv6OG2CqAjSE98kSel0vbXLkHCbodKeSUwu7JGiD7rA-4IGtfoLMnWR-xcpHI-0wumLv7Pd\" ><\/figure>\n\n\n\n<h4 id=\"pop\">pop()<\/h4>\n\n\n\n<p>pop method is used to remove a key-value pair from the dictionary by specifying the key. It returns the value of the key-value pair that is need to be removed.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> dictionary.pop(key)<\/p>\n\n\n\n<ul><li><em>key <\/em>refers to the key of the pair that you want to remove from the dictionary.<\/li><\/ul>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh3.googleusercontent.com\/WuP9OuppCT2xDsaeP5qzq7wsAPYe8EGaJQE5Ua4mvBYMV0QUVjFoFe3uIrKKYRMz-7XHEpCsJTN5c4JWIbBFO1dOfHQs7g-8x5HV-G-eP3ZSapb8irpwc6Kiftssq_zJfcMLivhe\" ><\/figure>\n\n\n\n<h4 id=\"popitem\">popitem()<\/h4>\n\n\n\n<p id=\"popitem-popitem-command-is-used-to-remove-the-last-inserted-pair-from-the-dictionary-it-does-not-take-any-parameters-it-returns-the-removed-pair-as-a-tuple\">popitem command is used to remove the last inserted pair from the dictionary. It does not take any parameters. It returns the removed pair as a tuple.<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> dictionary.popitem()<\/p>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh6.googleusercontent.com\/yvJyGweJE-b5DBquHzTn6b5NDLJ6jCDClWlVsElRYMoTa4kH-H1ra9qQu1OGLOacS6nVMjJeGT0XmSLLcRBwvj-qpniA4DFaKllLs4LajjDaIR9thh3lUpEXz0BOKPr5d_TjyRsH\" ><\/figure>\n\n\n\n<h4 id=\"setdefault\">setdefault()<\/h4>\n\n\n\n<p>setdefault method is used to get the value of a specified key. If the key does not exist it will insert the key with the value passed as a parameter. If you don\u2019t specify any value it will insert the key with value None.&nbsp;<\/p>\n\n\n\n<p><strong>Syntax:<\/strong> dictionary.setdefault(key, value)<\/p>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\" pk-lazyload\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/lh5.googleusercontent.com\/iRWtQBUmDARdr1lj-SobaAIKbQc4h1EgpGC4eQ7044E6a6iKEnqXSonhXrN8ydghv_0J0wKr5vjrFozJy1fIrw7wn7YoxBUeOAJc3WyoBQVE4HLYUILxJuAdTb0bOoK7B4xhUENo\" ><\/figure>\n\n\n\n<h2 id=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p>In this post, we\u2019ve discussed the top python commands that every Python programmer should learn. You should definitely try each and every command on your own. Also, try to experiment with random input parameters to see the behavior of commands. Python commands are easy to use, easy to write, and easy to learn. You don\u2019t need to remember all the commands but you should be familiar with what all commands provide as functionality.&nbsp;<\/p>\n\n\n\n<h2 id=\"frequently-asked-questions\">Frequently Asked Questions<\/h2>\n\n\n\n<p><strong>Q. What is Python 3 command?<\/strong><br>A. Python 3 commands are released in 2008. These commands are introduced with Python 2 features and they are compatible with Python 2 as well. Python 3 commands are more intuitive to programmers and more precise while providing the result.&nbsp;<\/p>\n\n\n\n<p><strong>Q. How do you use Python commands?<\/strong><br>A. To use or run Python commands you can use python shell. Python Shell is the python interpreter which is used to execute simple Python programs and to run python commands. It just provides a quick way to execute commands without creating any file.&nbsp;<\/p>\n\n\n\n<p><strong>Q. What are some common Python commands?<\/strong><br>A. Some common Python commands are input, print, range, round, pip install, len, sort, loop commands like for and while so on and so forth.<\/p>\n\n\n\n<p><strong>Q. What are magic commands in Python?<\/strong><br>A. Magic commands are shortcuts or enhancements over the usual Python syntax. These commands are designed to facilitate routine tasks. They enable us to easily control the behavior of the IPython system and solve various common problems in standard data analysis, for example, running an external script or calculating the execution time of a piece of code.<\/p>\n\n\n\n<h2 id=\"additional-resources\">Additional resources<\/h2>\n\n\n\n<p><a href=\"https:\/\/www.scaler.com\/topics\/course\/python-for-beginners\/\">Free Python Course<\/a><br><a rel=\"noreferrer noopener\" href=\"https:\/\/www.interviewbit.com\/practice\/\" target=\"_blank\">Practice Coding<\/a><br><a rel=\"noreferrer noopener\" href=\"https:\/\/www.interviewbit.com\/python-mcq\/\" target=\"_blank\">Python MCQ<\/a><br><a rel=\"noreferrer noopener\" href=\"https:\/\/www.interviewbit.com\/python-interview-questions\/\" target=\"_blank\">Python Interview Questions<\/a><br><a rel=\"noreferrer noopener\" href=\"https:\/\/www.interviewbit.com\/blog\/php-vs-python\/\" target=\"_blank\">PHP Vs Python<\/a><br><a rel=\"noreferrer noopener\" href=\"https:\/\/www.interviewbit.com\/blog\/python-developer-resume\/\" target=\"_blank\">Python Developer Resume<\/a><br><a rel=\"noreferrer noopener\" href=\"https:\/\/www.interviewbit.com\/blog\/applications-of-python\/\" target=\"_blank\">Python Applications<\/a><br><a rel=\"noreferrer noopener\" href=\"https:\/\/www.interviewbit.com\/blog\/python-developer-skills\/\" target=\"_blank\">Python Developer Skills<\/a><br><\/p>\n","protected":false},"excerpt":{"rendered":"Introduction Python is one of the most popular programming languages. It is an interpreted high-level general-purpose language. Python&hellip;\n","protected":false},"author":5,"featured_media":6600,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_daextam_enable_autolinks":"1","csco_singular_sidebar":"","csco_page_header_type":"","csco_appearance_grid":"","csco_page_load_nextpost":"","csco_post_video_location":[],"csco_post_video_location_hash":"","csco_post_video_url":"","csco_post_video_bg_start_time":0,"csco_post_video_bg_end_time":0},"categories":[748],"tags":[3,960],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.interviewbit.com\/blog\/wp-json\/wp\/v2\/posts\/6598"}],"collection":[{"href":"https:\/\/www.interviewbit.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.interviewbit.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.interviewbit.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.interviewbit.com\/blog\/wp-json\/wp\/v2\/comments?post=6598"}],"version-history":[{"count":9,"href":"https:\/\/www.interviewbit.com\/blog\/wp-json\/wp\/v2\/posts\/6598\/revisions"}],"predecessor-version":[{"id":22831,"href":"https:\/\/www.interviewbit.com\/blog\/wp-json\/wp\/v2\/posts\/6598\/revisions\/22831"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.interviewbit.com\/blog\/wp-json\/wp\/v2\/media\/6600"}],"wp:attachment":[{"href":"https:\/\/www.interviewbit.com\/blog\/wp-json\/wp\/v2\/media?parent=6598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.interviewbit.com\/blog\/wp-json\/wp\/v2\/categories?post=6598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.interviewbit.com\/blog\/wp-json\/wp\/v2\/tags?post=6598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}