{"id":121463,"date":"2026-07-08T19:58:38","date_gmt":"2026-07-08T14:28:38","guid":{"rendered":"https:\/\/www.guvi.in\/blog\/?p=121463"},"modified":"2026-07-08T19:58:39","modified_gmt":"2026-07-08T14:28:39","slug":"how-to-swap-two-numbers-in-python","status":"publish","type":"post","link":"https:\/\/www.guvi.in\/blog\/how-to-swap-two-numbers-in-python\/","title":{"rendered":"How to Swap Two Numbers in Python: 5 Easy Methods"},"content":{"rendered":"\n<p><strong>Swapping two numbers<\/strong> is one of the first concepts beginners learn in Python. It helps build a strong understanding of variables, assignments, and program flow. Whether you&#8217;re learning Python fundamentals, preparing for coding interviews, or improving problem-solving skills, mastering variable swapping is essential. To strengthen your <strong>Python knowledge<\/strong> further, explore <strong>HCL GUVI&#8217;s <\/strong><a href=\"https:\/\/www.guvi.in\/courses\/programming\/python-zero-to-hero\/?utm_source=blog&amp;utm_medium=hyperlink&amp;utm_campaign=How+to+Swap+Two+Numbers+in+Python%3A+5+Easy+Methods\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Python<\/strong><\/a><strong> Course<\/strong> and gain hands-on experience through practical projects.\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>TL;DR Summary<\/strong><\/h2>\n\n\n\n<ol>\n<li>Learn how to swap two numbers in Python using simple and beginner-friendly methods.<\/li>\n\n\n\n<li>Explore multiple techniques, including temporary variables, tuple unpacking, arithmetic operators, and bitwise XOR.<\/li>\n\n\n\n<li>Understand why variable swapping is an essential Python programming concept used in coding interviews and algorithm design.<\/li>\n\n\n\n<li>Discover the most Pythonic way to swap variables using multiple assignment without a temporary variable.<\/li>\n\n\n\n<li>Build a stronger foundation in Python programming while learning techniques used in sorting algorithms, data processing, and software development.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What Does Swapping Two Numbers Mean in Python?<\/strong><\/h2>\n\n\n\n<p>Swapping two numbers means exchanging the values stored in two variables.<\/p>\n\n\n\n<p>a = 10<\/p>\n\n\n\n<p>b = 20<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Variable<\/strong><\/td><td><strong>Before Swapping<\/strong><\/td><td><strong>After Swapping<\/strong><\/td><\/tr><tr><td>a<\/td><td>10<\/td><td>20<\/td><\/tr><tr><td>b<\/td><td>20<\/td><td>10<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The goal is to exchange the values without losing any data during the process. Swapping variables is commonly used in sorting algorithms, data manipulation tasks, and programming logic.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Why Is Swapping Variables Important?<\/strong><\/h2>\n\n\n\n<p>Swapping variables plays an important role in programming because many <a href=\"https:\/\/www.guvi.in\/blog\/what-is-algorithm-in-python\/\" target=\"_blank\" rel=\"noreferrer noopener\">algorithms<\/a> need values to be rearranged during execution.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Key Benefits<\/strong><\/h3>\n\n\n\n<ol>\n<li>Helps understand <a href=\"https:\/\/www.guvi.in\/blog\/do-you-know-how-to-create-variables-in-python\/\" target=\"_blank\" rel=\"noreferrer noopener\">variable assignment<\/a><\/li>\n\n\n\n<li>Improves logical thinking<\/li>\n\n\n\n<li>Used in sorting algorithms<\/li>\n\n\n\n<li>Common in coding interviews<\/li>\n\n\n\n<li>Supports data manipulation tasks<\/li>\n\n\n\n<li>Builds strong programming fundamentals<\/li>\n<\/ol>\n\n\n\n<p>Understanding swapping techniques makes it easier to learn more complex programming concepts later.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Method 1: Swap Using a Temporary Variable<\/strong><\/h2>\n\n\n\n<p>The temporary variable method is the most traditional approach.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example<\/strong><\/h3>\n\n\n\n<p>a = 10<\/p>\n\n\n\n<p>b = 20<\/p>\n\n\n\n<p>temp = a<\/p>\n\n\n\n<p>a = b<\/p>\n\n\n\n<p>b = temp<\/p>\n\n\n\n<p>print(a, b)<\/p>\n\n\n\n<p><strong>How It Works<\/strong><\/p>\n\n\n\n<ol>\n<li>Store the value of a in a temporary variable.<\/li>\n\n\n\n<li>Assign the value of b to a.<\/li>\n\n\n\n<li>Assign the stored value from temp to b.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Advantages<\/strong><\/h3>\n\n\n\n<ol>\n<li>Easy to understand<\/li>\n\n\n\n<li>Beginner-friendly<\/li>\n\n\n\n<li>Works in most programming languages<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Limitation<\/strong><\/h3>\n\n\n\n<p>Requires an extra variable<\/p>\n\n\n\n<p>This method is ideal for beginners learning programming concepts.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Method 2: Swap Using Multiple Assignments<\/strong><\/h2>\n\n\n\n<p>Python provides a simpler way to swap variables.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example<\/strong><\/h3>\n\n\n\n<p>a = 10<\/p>\n\n\n\n<p>b = 20<\/p>\n\n\n\n<p>a, b = b, a<\/p>\n\n\n\n<p>print(a, b)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>How It Works<\/strong><\/h3>\n\n\n\n<p>Python automatically packs and unpacks tuples in the background.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Advantages<\/strong><\/h3>\n\n\n\n<ol>\n<li>Short and clean<\/li>\n\n\n\n<li>No temporary variable needed<\/li>\n\n\n\n<li>Most Pythonic approach<\/li>\n<\/ol>\n\n\n\n<p>This is the preferred method for most Python developers.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Method 3: Swap Using Arithmetic Operators<\/strong><\/h2>\n\n\n\n<p>You can swap values using arithmetic operations.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example<\/strong><\/h3>\n\n\n\n<p>a = 10<\/p>\n\n\n\n<p>b = 20<\/p>\n\n\n\n<p>a = a + b<\/p>\n\n\n\n<p>b = a &#8211; b<\/p>\n\n\n\n<p>a = a &#8211; b<\/p>\n\n\n\n<p>print(a, b)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Advantages<\/strong><\/h3>\n\n\n\n<ol>\n<li>No extra variable required<\/li>\n\n\n\n<li>Shows arithmetic operations<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Limitation<\/strong><\/h3>\n\n\n\n<ol>\n<li>Less readable<\/li>\n\n\n\n<li>Can be confusing for beginners<\/li>\n<\/ol>\n\n\n\n<p>This method works but is rarely used in modern Python development.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Method 4: Swap Using Bitwise XOR<\/strong><\/h2>\n\n\n\n<p><a href=\"https:\/\/www.guvi.in\/hub\/python\/bitwise-operators-in-python\/\" target=\"_blank\" rel=\"noreferrer noopener\">Bitwise operators<\/a> can also be used to swap values.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example<\/strong><\/h3>\n\n\n\n<p>a = 10<\/p>\n\n\n\n<p>b = 20<\/p>\n\n\n\n<p>a = a ^ b<\/p>\n\n\n\n<p>b = a ^ b<\/p>\n\n\n\n<p>a = a ^ b<\/p>\n\n\n\n<p>print(a, b)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Advantages<\/strong><\/h3>\n\n\n\n<ol>\n<li>No temporary variable needed<\/li>\n\n\n\n<li>Useful for understanding bitwise operations<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Limitation<\/strong><\/h3>\n\n\n\n<ol>\n<li>Difficult to understand<\/li>\n\n\n\n<li>Not beginner-friendly<\/li>\n<\/ol>\n\n\n\n<p>This method is mostly used for teaching purposes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Method 5: Swap Using Tuple Unpacking<\/strong><\/h2>\n\n\n\n<p><a href=\"https:\/\/www.guvi.in\/blog\/what-is-a-tuple-in-python\/\" target=\"_blank\" rel=\"noreferrer noopener\">Tuple <\/a>unpacking is closely related to multiple assignment and is one of Python&#8217;s most powerful features.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example<\/strong><\/h3>\n\n\n\n<p>a = 10<\/p>\n\n\n\n<p>b = 20<\/p>\n\n\n\n<p>(a, b) = (b, a)<\/p>\n\n\n\n<p>print(a, b)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Advantages<\/strong><\/h3>\n\n\n\n<ol>\n<li>Simple syntax<\/li>\n\n\n\n<li>Highly readable<\/li>\n\n\n\n<li>Efficient<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Limitation<\/strong><\/h3>\n\n\n\n<p>Less intuitive for learners coming from programming languages that require a temporary variable for swapping.<\/p>\n\n\n\n<p>Tuple unpacking is widely used in modern Python applications.<\/p>\n\n\n\n<p>Understanding swapping techniques makes it easier to learn more complex programming concepts later. If you&#8217;re looking to strengthen your Python fundamentals and gain hands-on coding experience, explore <strong>HCL GUVI&#8217;s <\/strong><a href=\"https:\/\/www.guvi.in\/courses\/programming\/python-zero-to-hero\/?utm_source=blog&amp;utm_medium=hyperlink&amp;utm_campaign=How+to+Swap+Two+Numbers+in+Python%3A+5+Easy+Methods\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Python <\/strong><\/a><strong>Course<\/strong>, which covers variables, operators, functions, data structures, and real-world Python projects.\u00a0<\/p>\n\n\n\n<div style=\"background-color: #099f4e; border: 3px solid #110053; border-radius: 12px; padding: 18px 22px; color: #FFFFFF; font-size: 18px; font-family: Montserrat, Helvetica, sans-serif; line-height: 1.6; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); max-width: 750px;\">\n\n  <strong style=\"font-size: 22px; color: #FFFFFF;\">\ud83d\udca1 Did You Know?<\/strong>\n  <br \/><br \/>\n\n  Python&#8217;s <strong style=\"color: #FFFFFF;\">multiple assignment<\/strong> feature lets you swap the values of two variables without using a temporary variable. For example, <code style=\"color: #FFFFFF;\">a, b = b, a<\/code> exchanges the values of <strong style=\"color: #FFFFFF;\">a<\/strong> and <strong style=\"color: #FFFFFF;\">b<\/strong> in a single statement. This concise syntax makes Python code shorter, cleaner, and more readable than equivalent implementations in many other programming languages.\n\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Common Python Functions Used in Swapping Programs<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Function<\/strong><\/td><td><strong>Purpose<\/strong><\/td><\/tr><tr><td>print()<\/td><td>Displays values and results on the screen.<\/td><\/tr><tr><td>input()<\/td><td>Accepts input from the user.<\/td><\/tr><tr><td>int()<\/td><td>Converts user input into an integer.<\/td><\/tr><tr><td>type()<\/td><td>Checks the data type of a variable.<\/td><\/tr><tr><td>help()<\/td><td>Displays information about Python functions and modules.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>These commands help beginners grasp how Python programs are executed and managed.<\/p>\n\n\n\n<p>Want to build a stronger foundation in Python programming? Download<strong> HCL GUVI&#8217;s free Python <\/strong><a href=\"https:\/\/www.guvi.in\/mlp\/python-ebook\/?utm_source=blog&amp;utm_medium=hyperlink&amp;utm_campaign=How+to+Swap+Two+Numbers+in+Python%3A+5+Easy+Methods\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>eBook<\/strong> <\/a>and explore practical coding concepts with hands-on examples and exercises.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How Sorting Algorithms Use Variable Swapping<\/strong><\/h2>\n\n\n\n<p>Variable swapping is one of the core operations used in <a href=\"https:\/\/www.guvi.in\/blog\/sorting-in-data-structure-categories-types\/\" target=\"_blank\" rel=\"noreferrer noopener\">sorting algorithms<\/a>. During the sorting process, elements are repeatedly exchanged to move them into the correct position. This helps organize data efficiently and makes it easier to search, analyze, and process information.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Real-World Example: Employee Salary Sorting System<\/strong><\/h3>\n\n\n\n<p>Many business applications need to sort records before displaying reports or dashboards. The example below uses swapping to arrange employee salaries in ascending order.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>employees = [<br>&nbsp; &nbsp; [&#8220;Harini&#8221;, 45000],<br>&nbsp; &nbsp; [&#8220;Rahul&#8221;, 65000],<br>&nbsp; &nbsp; [&#8220;Priya&#8221;, 52000],<br>&nbsp; &nbsp; [&#8220;Arun&#8221;, 40000],<br>&nbsp; &nbsp; [&#8220;Karthik&#8221;, 58000]<br>]<br>n = len(employees)<br><strong>for<\/strong> i in range(n):<br>&nbsp; &nbsp; <strong>for<\/strong> j in range(0, n &#8211; i &#8211; 1):<br>&nbsp; &nbsp; &nbsp; &nbsp; <strong>if<\/strong> employees[j][1] &gt; employees[j + 1][1]:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; employees[j], employees[j + 1] = employees[j + 1], employees[j]<br><strong>print<\/strong>(&#8220;Employees sorted by salary:&#8221;)<br><strong>for<\/strong> employee in employees:<br>&nbsp; &nbsp; <strong>print<\/strong>(employee[0], &#8220;-&#8220;, employee[1])<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Output<\/strong><\/h3>\n\n\n\n<p>Employees sorted by salary:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Arun &#8211; 40000<br>Harini &#8211; 45000<br>Priya &#8211; 52000<br>Karthik &#8211; 58000<br>Rahul &#8211; 65000<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>In this example, swapping is used repeatedly to move employee records into the correct order. Similar techniques are used in payroll systems, reporting dashboards, analytics platforms, and database applications, where data must be sorted before being displayed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Common Mistakes Beginners Make<\/strong><\/h2>\n\n\n\n<p><strong>Mistake 1: Forgetting the Temporary Variable<\/strong><\/p>\n\n\n\n<p>Some beginners overwrite a value before storing it.<\/p>\n\n\n\n<p><strong>Mistake 2: Incorrect Assignment Order<\/strong><\/p>\n\n\n\n<p>Changing the sequence of assignments can yield incorrect results.<\/p>\n\n\n\n<p><strong>Mistake 3: Confusing Assignment with Comparison<\/strong><\/p>\n\n\n\n<p>Using == instead of = can create errors.<\/p>\n\n\n\n<p><strong>Mistake 4: Using Complex Methods Too Early<\/strong><\/p>\n\n\n\n<p>Advanced techniques like XOR swapping can confuse beginners.<\/p>\n\n\n\n<p>Avoiding these mistakes helps build confidence while learning Python.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Which Swapping Method Should You Use?<\/strong><\/h2>\n\n\n\n<p><strong>Quick Recommendation<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Goal<\/strong><\/td><td><strong>Recommended Method<\/strong><\/td><\/tr><tr><td>Learning programming fundamentals<\/td><td>Temporary Variable<\/td><\/tr><tr><td>Writing clean Python code<\/td><td>Multiple Assignment<\/td><\/tr><tr><td>Understanding arithmetic logic<\/td><td>Arithmetic Method<\/td><\/tr><tr><td>Learning bitwise operations<\/td><td>XOR Method<\/td><\/tr><tr><td>Professional Python development<\/td><td>Tuple Unpacking<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>For most Python developers, multiple assignment is the best choice because it combines simplicity, readability, and efficiency.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>Learning how to swap two numbers in Python is a simple yet crucial programming skill. It introduces fundamental concepts such as variables, assignments, and program logic while preparing learners for more advanced topics. From temporary variables to Python&#8217;s elegant multiple assignment feature, there are various approaches for exchanging values. Understanding these techniques helps build stronger programming foundations and enhances problem-solving skills across many Python applications.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>FAQs<\/strong><\/h2>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1783394023739\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><strong>1. What is swapping in Python?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Swapping means exchanging the values stored in two variables.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1783394029083\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><strong>2. Which is the best method to swap two numbers in Python?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Multiple assignment is generally regarded as the best and most Pythonic method.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1783394037336\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><strong>3. Can I swap variables without a temporary variable?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Yes. Python supports multiple assignment and tuple unpacking for this purpose.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1783394048709\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><strong>4. Why is swapping important in programming?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Swapping is commonly used in sorting algorithms, data processing, and software development.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1783394062224\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><strong>5. Is XOR swapping useful in Python?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>It works but is mainly used for learning and is rarely seen in production code.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1783394073244\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><strong>6. What is tuple unpacking?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Tuple unpacking allows multiple variables to be assigned values at the same time.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1783394083266\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><strong>7. Is variable swapping asked in coding interviews?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Yes. Swapping variables is a common beginner-level interview question that tests understanding of assignments and logic.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Swapping two numbers is one of the first concepts beginners learn in Python. It helps build a strong understanding of variables, assignments, and program flow. Whether you&#8217;re learning Python fundamentals, preparing for coding interviews, or improving problem-solving skills, mastering variable swapping is essential. To strengthen your Python knowledge further, explore HCL GUVI&#8217;s Python Course and [&hellip;]<\/p>\n","protected":false},"author":63,"featured_media":122051,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[717],"tags":[],"views":"43","authorinfo":{"name":"Vishalini Devarajan","url":"https:\/\/www.guvi.in\/blog\/author\/vishalini\/"},"thumbnailURL":"https:\/\/www.guvi.in\/blog\/wp-content\/uploads\/2026\/07\/how-to-swap-two-numbers-in-python-300x117.webp","_links":{"self":[{"href":"https:\/\/www.guvi.in\/blog\/wp-json\/wp\/v2\/posts\/121463"}],"collection":[{"href":"https:\/\/www.guvi.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.guvi.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.guvi.in\/blog\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/www.guvi.in\/blog\/wp-json\/wp\/v2\/comments?post=121463"}],"version-history":[{"count":3,"href":"https:\/\/www.guvi.in\/blog\/wp-json\/wp\/v2\/posts\/121463\/revisions"}],"predecessor-version":[{"id":122050,"href":"https:\/\/www.guvi.in\/blog\/wp-json\/wp\/v2\/posts\/121463\/revisions\/122050"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.guvi.in\/blog\/wp-json\/wp\/v2\/media\/122051"}],"wp:attachment":[{"href":"https:\/\/www.guvi.in\/blog\/wp-json\/wp\/v2\/media?parent=121463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.guvi.in\/blog\/wp-json\/wp\/v2\/categories?post=121463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.guvi.in\/blog\/wp-json\/wp\/v2\/tags?post=121463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}