{"id":1044,"date":"2023-01-09T19:13:37","date_gmt":"2023-01-09T13:43:37","guid":{"rendered":"https:\/\/jassweb.com\/new22\/solved-find-all-possible-magic-squares-3x3-python\/"},"modified":"2023-01-09T19:13:37","modified_gmt":"2023-01-09T13:43:37","slug":"solved-find-all-possible-magic-squares-3x3-python-2","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-find-all-possible-magic-squares-3x3-python-2\/","title":{"rendered":"[Solved] Find all possible magic squares (3\u00d73) python"},"content":{"rendered":"<h2> Introduction <\/h2>\n<p>[ad_1]<\/p>\n<p>A magic square is a square grid of numbers where the sum of each row, column, and diagonal is the same. In this tutorial, we will be discussing how to find all possible 3&#215;3 magic squares using Python. We will be using a combination of loops and if-else statements to generate all possible magic squares. We will also be discussing some of the properties of magic squares and how they can be used in various applications.<\/p>\n<h2> Solution<\/h2>\n<p><\/p>\n<p># Solution <\/p>\n<p># This program prints all possible magic squares of size 3&#215;3<\/p>\n<p># A magic square is a 3&#215;3 grid where every row, column and diagonal sum to the same number<\/p>\n<p># We will use the numbers 1-9 to fill the grid<\/p>\n<p># We will use a list of lists to represent the grid<\/p>\n<p># We will use a backtracking algorithm to find all possible solutions<\/p>\n<p># A function to check if the current grid is a magic square<br \/>\ndef is_magic_square(grid):<br \/>\n    # Check the rows<br \/>\n    for row in grid:<br \/>\n        if sum(row) != 15:<br \/>\n            return False<br \/>\n    # Check the columns<br \/>\n    for col in range(3):<br \/>\n        col_sum = 0<br \/>\n        for row in range(3):<br \/>\n            col_sum += grid[row][col]<br \/>\n        if col_sum != 15:<br \/>\n            return False<br \/>\n    # Check the diagonals<br \/>\n    diag1 = 0<br \/>\n    diag2 = 0<br \/>\n    for i in range(3):<br \/>\n        diag1 += grid[i][i]<br \/>\n        diag2 += grid[i][2-i]<br \/>\n    if diag1 != 15 or diag2 != 15:<br \/>\n        return False<br \/>\n    # If all checks pass, it is a magic square<br \/>\n    return True<\/p>\n<p># A function to generate all possible permutations of the numbers 1-9<br \/>\ndef generate_permutations():<br \/>\n    permutations = []<br \/>\n    numbers = [1,2,3,4,5,6,7,8,9]<br \/>\n    for a in numbers:<br \/>\n        for b in numbers:<br \/>\n            if b != a:<br \/>\n                for c in numbers:<br \/>\n                    if c != a and c != b:<br \/>\n                        for d in numbers:<br \/>\n                            if d != a and d != b and d != c:<br \/>\n                                for e in numbers:<br \/>\n                                    if e != a and e != b and e != c and e != d:<br \/>\n                                        for f in numbers:<br \/>\n                                            if f != a and f != b and f != c and f != d and f != e:<br \/>\n                                                for g in numbers:<br \/>\n                                                    if g != a and g != b and g != c and g != d and g != e and g != f:<br \/>\n                                                        for h in numbers:<br \/>\n                                                            if h != a and h != b and h != c and h != d and h != e and h != f and h != g:<br \/>\n                                                                for i in numbers:<br \/>\n                                                                    if i != a and i != b and i != c and i != d and i != e and i != f and i != g and i != h:<br \/>\n                                                                        permutations.append([a,b,c,d,e,f,g,h,i])<br \/>\n    return permutations<\/p>\n<p># A function to generate all possible magic squares<br \/>\ndef generate_magic_squares():<br \/>\n    permutations = generate_permutations()<br \/>\n    magic_squares = []<br \/>\n    for permutation in permutations:<br \/>\n        grid = [[permutation[0],permutation[1],permutation[2]],<br \/>\n                [permutation[3],permutation[4],permutation[5]],<br \/>\n                [permutation[6],permutation[7],permutation[8]]]<br \/>\n        if is_magic_square(grid):<br \/>\n            magic_squares.append(grid)<br \/>\n    return magic_squares<\/p>\n<p># Print all possible magic squares<br \/>\nmagic_squares = generate_magic_squares()<br \/>\nfor magic_square in magic_squares:<br \/>\n    print(magic_square) <\/p>\n<p><\/p>\n<div class=\"entry-content\" itemprop=\"text\">\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1088640234840270\" crossorigin=\"anonymous\"><\/script><\/p>\n<p><script><\/p>\n<p><\/script><\/p>\n<p>\n<\/p>\n<div id=\"answer-56563619\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"56563619\" data-parentid=\"56563313\" data-score=\"2\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>I\u2019ll leave finding out how to generate a magic square as an exercise. If you\u2019re still having trouble with it, you can find other questions on StackOverflow about how to generate a magic square of a given size in Python.<\/p>\n<p>Once you have your 3\u00d73 magic square <code>magic(3)<\/code> (as a numpy ndarray), you can obtain all of the possible magic squares of that size by performing all of the possible rotations and reflections on it:<\/p>\n<pre class=\"lang-py prettyprint-override\"><code>rotations = [np.rot90(magic(3), x) for x in range(4)]\nreflections = [np.flip(x, 1) for x in rotations]\nall_magic_3x3 = rotations + reflections\n<\/code><\/pre>\n<p>This produces a list containing the following 8 magic 3\u00d73 matrices:<\/p>\n<pre><code>[[8 1 6]\n [3 5 7]\n [4 9 2]]\n\n[[6 7 2]\n [1 5 9]\n [8 3 4]]\n\n[[2 9 4]\n [7 5 3]\n [6 1 8]]\n\n[[4 3 8]\n [9 5 1]\n [2 7 6]]\n\n[[6 1 8]\n [7 5 3]\n [2 9 4]]\n\n[[2 7 6]\n [9 5 1]\n [4 3 8]]\n\n[[4 9 2]\n [3 5 7]\n [8 1 6]]\n\n[[8 3 4]\n [1 5 9]\n [6 7 2]]\n<\/code><\/pre>\n<\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p> <span class=\"d-none\" itemprop=\"commentCount\">0<\/span> <\/p>\n<\/div>\n<\/div>\n<p>solved Find all possible magic squares (3\u00d73) python <\/p>\n<p><script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1088640234840270\" crossorigin=\"anonymous\"><\/script><\/p>\n<p><script><\/p>\n<p><\/script> <\/div>\n<p>[ad_2]<\/p>\n<h1>Solved: Find All Possible Magic Squares (3&#215;3) in Python<\/h1>\n<p>A magic square is a square grid of numbers where the sum of each row, column, and diagonal is the same. A 3&#215;3 magic square is a 3&#215;3 grid of numbers where each row, column, and diagonal add up to the same number. In this article, we will discuss how to find all possible magic squares (3&#215;3) in Python.<\/p>\n<h2>Algorithm to Find All Possible Magic Squares (3&#215;3)<\/h2>\n<p>The algorithm to find all possible magic squares (3&#215;3) is as follows:<\/p>\n<ol>\n<li>Start with an empty 3&#215;3 grid.<\/li>\n<li>Fill the grid with the numbers 1 to 9 such that each row, column, and diagonal add up to the same number.<\/li>\n<li>Repeat steps 1 and 2 until all possible magic squares (3&#215;3) have been found.<\/li>\n<\/ol>\n<h2>Python Program to Find All Possible Magic Squares (3&#215;3)<\/h2>\n<p>The following Python program finds all possible magic squares (3&#215;3) using the algorithm discussed above:<\/p>\n<pre>\ndef find_all_magic_squares(n):\n  # Create an empty 3x3 grid\n  grid = [[0 for x in range(n)] for y in range(n)] \n  \n  # Fill the grid with the numbers 1 to 9\n  num = 1\n  for i in range(0, n): \n    for j in range(0, n): \n      grid[i][j] = num\n      num = num + 1\n  \n  # Check if the grid is a magic square\n  if (is_magic_square(grid, n)): \n    print(grid)\n  \n  # Generate all possible permutations of the numbers 1 to 9\n  permutations = permutations_of_numbers(n) \n  \n  # Iterate through all permutations\n  for permutation in permutations: \n    # Fill the grid with the current permutation\n    for i in range(0, n): \n      for j in range(0, n): \n        grid[i][j] = permutation[i][j] \n    \n    # Check if the grid is a magic square\n    if (is_magic_square(grid, n)): \n      print(grid)\n\n# Function to check if the grid is a magic square\ndef is_magic_square(grid, n): \n  # Calculate the sum of the first row\n  s = 0\n  for i in range(0, n): \n    s = s + grid[0][i] \n  \n  # Check the sum of each row, column, and diagonal\n  for i in range(0, n): \n    # Check the sum of each row\n    row_sum = 0\n    for j in range(0, n): \n      row_sum = row_sum + grid[i][j] \n    if (row_sum != s): \n      return False\n  \n    # Check the sum of each column\n    col_sum = 0\n    for j in range(0, n): \n      col_sum = col_sum + grid[j][i] \n    if (col_sum != s): \n      return False\n  \n  # Check the sum of each diagonal\n  diag_sum1 = 0\n  diag_sum2 = 0\n  for i in range(0, n): \n    diag_sum1 = diag_sum1 + grid[i][i] \n    diag_sum2 = diag_sum2 + grid[i][n - i - 1] \n  if (diag_sum1 != s or diag_sum2 != s): \n    return False\n  \n  # If all checks pass, the grid is a magic square\n  return True\n\n# Function to generate all possible permutations of the numbers 1 to 9\ndef permutations_of_numbers(n): \n  # Create a list of numbers\n  numbers = []\n  for i in range(1, n * n + 1): \n    numbers.append(i) \n  \n  # Generate all possible permutations\n  permutations = []\n  generate_permutations(numbers, [], permutations) \n  return permutations\n\n# Function to generate all possible permutations\ndef generate_permutations(numbers, current_permutation, permutations): \n  # If the current permutation has the same length as the list of numbers, it is a valid permutation\n  if (len(numbers) == len(current_permutation)): \n    permutations.append(current_permutation) \n  else: \n    # Iterate through the list of numbers\n    for i in range(0, len(numbers)): \n      # Create a new list with the numbers not in the current permutation\n      remaining_numbers = []\n      for j in range(0, len(numbers)): \n        if (j != i): \n          remaining_numbers.append(numbers[j]) \n      \n      # Create a new permutation by adding the current number to the current permutation\n      new_permutation = list(current_permutation)\n      new_permutation.append(numbers[i]) \n      \n      # Generate all permutations with the remaining numbers\n      generate_permutations(remaining_numbers, new_permutation, permutations) \n\n# Driver code\nn = 3\nfind_all_magic_squares(n)\n<\/pre>\n<p>The output of the above program is a list of all possible magic squares (3&#215;3).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction [ad_1] A magic square is a square grid of numbers where the sum of each row, column, and diagonal is the same. In this tutorial, we will be discussing how to find all possible 3&#215;3 magic squares using Python. We will be using a combination of loops and if-else statements to generate all possible &#8230; <a title=\"[Solved] Find all possible magic squares (3\u00d73) python\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-find-all-possible-magic-squares-3x3-python-2\/\" aria-label=\"More on [Solved] Find all possible magic squares (3\u00d73) python\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[3114,349],"class_list":["post-1044","post","type-post","status-publish","format-standard","hentry","category-solved","tag-magic-square","tag-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] Find all possible magic squares (3\u00d73) python - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-find-all-possible-magic-squares-3x3-python-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Find all possible magic squares (3\u00d73) python - JassWeb\" \/>\n<meta property=\"og:description\" content=\"Introduction [ad_1] A magic square is a square grid of numbers where the sum of each row, column, and diagonal is the same. In this tutorial, we will be discussing how to find all possible 3&#215;3 magic squares using Python. We will be using a combination of loops and if-else statements to generate all possible ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-find-all-possible-magic-squares-3x3-python-2\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-09T13:43:37+00:00\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-find-all-possible-magic-squares-3x3-python-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-find-all-possible-magic-squares-3x3-python-2\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Find all possible magic squares (3\u00d73) python\",\"datePublished\":\"2023-01-09T13:43:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-find-all-possible-magic-squares-3x3-python-2\/\"},\"wordCount\":725,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"keywords\":[\"magic-square\",\"python\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-find-all-possible-magic-squares-3x3-python-2\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-find-all-possible-magic-squares-3x3-python-2\/\",\"name\":\"[Solved] Find all possible magic squares (3\u00d73) python - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"datePublished\":\"2023-01-09T13:43:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-find-all-possible-magic-squares-3x3-python-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-find-all-possible-magic-squares-3x3-python-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-find-all-possible-magic-squares-3x3-python-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Find all possible magic squares (3\u00d73) python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jassweb.com\/solved\/#website\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jassweb.com\/solved\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"contentUrl\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Find all possible magic squares (3\u00d73) python - JassWeb","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jassweb.com\/solved\/solved-find-all-possible-magic-squares-3x3-python-2\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Find all possible magic squares (3\u00d73) python - JassWeb","og_description":"Introduction [ad_1] A magic square is a square grid of numbers where the sum of each row, column, and diagonal is the same. In this tutorial, we will be discussing how to find all possible 3&#215;3 magic squares using Python. We will be using a combination of loops and if-else statements to generate all possible ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-find-all-possible-magic-squares-3x3-python-2\/","og_site_name":"JassWeb","article_published_time":"2023-01-09T13:43:37+00:00","author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-find-all-possible-magic-squares-3x3-python-2\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-find-all-possible-magic-squares-3x3-python-2\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Find all possible magic squares (3\u00d73) python","datePublished":"2023-01-09T13:43:37+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-find-all-possible-magic-squares-3x3-python-2\/"},"wordCount":725,"commentCount":0,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["magic-square","python"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-find-all-possible-magic-squares-3x3-python-2\/","url":"https:\/\/jassweb.com\/solved\/solved-find-all-possible-magic-squares-3x3-python-2\/","name":"[Solved] Find all possible magic squares (3\u00d73) python - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2023-01-09T13:43:37+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-find-all-possible-magic-squares-3x3-python-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-find-all-possible-magic-squares-3x3-python-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-find-all-possible-magic-squares-3x3-python-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Find all possible magic squares (3\u00d73) python"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/1044","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=1044"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/1044\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=1044"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=1044"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=1044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}