

{"id":80488,"date":"2020-08-10T13:33:19","date_gmt":"2020-08-10T08:03:19","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=80488"},"modified":"2026-06-01T12:05:37","modified_gmt":"2026-06-01T06:35:37","slug":"dice-rolling-simulator-python","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/dice-rolling-simulator-python\/","title":{"rendered":"Dice Rolling Simulator Python Game [Source Code Included]"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:2511,&quot;href&quot;:&quot;https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1DFJd7mrYwmxqIDaWq7S52ERJpgcJO7gb\\\/view?usp=drive_link&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20260601063441\\\/https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1DFJd7mrYwmxqIDaWq7S52ERJpgcJO7gb\\\/view?usp=drive_link&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-06-02 04:40:02&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-02 04:40:02&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]'><\/div>\n<p>Snake and Ladders, Ludo and Checkers, are the most favorite games of all time. But, it feels terrible when you drop the plan of playing just because you couldn\u2019t find the dice. So, here is a fascinating option to give you a chance to make something cool. Let\u2019s build a Dice Rolling Simulator with basic knowledge of Python.<\/p>\n<h3>What is Tkinter?<\/h3>\n<p>Python offers various packages to design the GUI, i.e. the Graphical User Interface. Tkinter is the most common, fast, and easy to use Python package used to build Graphical User Interface applications. It provides a powerful Object-Oriented Interface and is easy to use. Also, you develop an application; you can use it on any platform, which reduces the need of amendments required to use an app on Windows, Mac, or Linux.<\/p>\n<h3>Dice Rolling Simulator in Python<\/h3>\n<p>We all know about dice. It\u2019s a simple cube with numbers from 1 to 6 written on its face. But what is simulation? It is making a computer model. Thus, a dice simulator is a simple computer model that can roll a dice for us.<\/p>\n<p>We aim to build a dice simulator which looks like:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/dice-rolling-simulator.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-80507\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/dice-rolling-simulator.png\" alt=\"dice rolling simulator\" width=\"1315\" height=\"664\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/dice-rolling-simulator.png 1315w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/dice-rolling-simulator-300x151.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/dice-rolling-simulator-1024x517.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/dice-rolling-simulator-150x76.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/dice-rolling-simulator-768x388.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/dice-rolling-simulator-520x263.png 520w\" sizes=\"auto, (max-width: 1315px) 100vw, 1315px\" \/><\/a><\/p>\n<h3>Download Dice Rolling Simulator Project Code<\/h3>\n<p>Before proceeding ahead, please download the source code of dice rolling simulator python project: <a href=\"https:\/\/drive.google.com\/file\/d\/1DFJd7mrYwmxqIDaWq7S52ERJpgcJO7gb\/view?usp=drive_link\"><strong>Dice Rolling Simulator Project<\/strong><\/a><\/p>\n<h3>Build Dice Rolling Simulator<\/h3>\n<h4>Step 1: Importing the required modules<\/h4>\n<p>We will import the following modules:<\/p>\n<ul>\n<li>Tkinter: Imported to use Tkinter and make GUI applications.<\/li>\n<li>Image, Imagetk: Imported from PIL, i.e. Python Imaging Library. We use it to perform operations involving images in our UI.<\/li>\n<li>Random: Imported to generate random numbers.<\/li>\n<\/ul>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">import tkinter\r\nfrom PIL import Image, ImageTk\r\nimport random\r\n<\/pre>\n<h4>Step 2: Building a top-level widget to make the main window for our application<\/h4>\n<p>In this step, we will build the main window of our application, where the buttons, labels, and images will reside. We also give it a title by title() function.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"># top-level widget which represents the main window of an application\r\nroot = tkinter.Tk()\r\nroot.geometry('400x400')\r\nroot.title('DataFlair Roll the Dice')\r\n<\/pre>\n<p><strong>Explanation:<\/strong><\/p>\n<p>The above code sets the title of the application window as \u2018DataFlair Roll the Dice\u2019. Running the above code will generate a blank window of dice rolling simulator python project with the title on it.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/blank-dice.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-80508\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/blank-dice.png\" alt=\"blank dice\" width=\"1315\" height=\"664\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/blank-dice.png 1315w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/blank-dice-300x151.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/blank-dice-1024x517.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/blank-dice-150x76.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/blank-dice-768x388.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/blank-dice-520x263.png 520w\" sizes=\"auto, (max-width: 1315px) 100vw, 1315px\" \/><\/a><\/p>\n<h4>Step 3: Designing the buttons<\/h4>\n<p>Now, just think, what we need to roll a die? Just our hands!<\/p>\n<p>The below code will add a label giving a heading to our dice simulator. Also, we will add an image area, which will display the image chosen by random numbers.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"># Adding label into the frame\r\nBlankLine = tkinter.Label(root, text=\"\")\r\nBlankLine.pack()\r\n\r\n# adding label with different font and formatting\r\nHeadingLabel = tkinter.Label(root, text=\"Hello from DataFlair!\",\r\n   fg = \"light green\",\r\n     bg = \"dark green\",\r\n     font = \"Helvetica 16 bold italic\")\r\nHeadingLabel.pack()\r\n\r\n# images\r\ndice = ['die1.png', 'die2.png', 'die3.png', \r\n    'die4.png', 'die5.png', 'die6.png']\r\n# simulating the dice with random numbers between\r\n# 0 to 6 and generating image\r\nDiceImage = ImageTk.PhotoImage(Image.open(random.choice(dice)))\r\n\r\n# construct a label widget for image\r\nImageLabel = tkinter.Label(root, image=DiceImage)\r\nImageLabel.image = DiceImage\r\n\r\n# packing a widget in the parent widget \r\nImageLabel.pack( expand=True)\r\n\r\n<\/pre>\n<p><strong>Explanation:<\/strong><\/p>\n<p>Here, we use <strong>pack()<\/strong> to arrange our widgets in row and column form. The \u2018BlankLine\u2019 label is to skip a line, whereas we use \u2018HeadingLabel\u2019 label to give a heading.<\/p>\n<ul>\n<li><strong>root<\/strong> \u2013 the name by which we refer to the main window of the application<\/li>\n<li><strong>text<\/strong> &#8211; text to be displayed in the HeadingLabel<\/li>\n<li><strong>fg<\/strong>\u2013 the colour of the font used in HeadingLabel<\/li>\n<li><strong>bg<\/strong> \u2013 background colour of the HeadingLabel<\/li>\n<li><strong>font<\/strong> \u2013 used to give customised fonts to the HeadingLabel text<\/li>\n<li><strong>.pack()<\/strong> \u2013 Used to pack the widget onto the root window<\/li>\n<\/ul>\n<h4>Step 4: Forming a list of images to be randomly displayed<\/h4>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"># images\r\ndice = ['die1.png', 'die2.png', 'die3.png', 'die4.png', 'die5.png', 'die6.png']\r\n\r\n# simulating the dice with random numbers between\r\n# 0 to 6 and generating image\r\nDiceImage = ImageTk.PhotoImage(Image.open(random.choice(dice)))\r\n<\/pre>\n<p><strong>Explanation:<\/strong><\/p>\n<p>\u2018dice\u2019 is the list of names of images kept in same folder, which are chosen randomly according to the random number generated.<br \/>\n\u2018DiceImage\u2019 is used to store an image of dice which is chosen by randomly generated numbers.<\/p>\n<h4>Step 5: Constructing a label for image, adding a button and assigning functionality<\/h4>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"># construct a label widget for image\r\nImageLabel = tkinter.Label(root, image=DiceImage)\r\nImageLabel.image = DiceImage\r\n\r\n# packing a widget in the parent widget \r\nImageLabel.pack( expand=True)\r\n\r\n# function activated by button\r\ndef rolling_dice():\r\n    DiceImage = ImageTk.PhotoImage(Image.open(random.choice(dice)))\r\n    # update image\r\n    ImageLabel.configure(image=DiceImage)\r\n    # keep a reference\r\n    ImageLabel.image = DiceImage\r\n\r\n# adding button, and command will use rolling_dice function\r\nbutton = tkinter.Button(root, text='Roll the Dice', fg='blue', command=rolling_dice)\r\n\r\n# pack a widget in the parent widget\r\nbutton.pack( expand=True)\r\n<\/pre>\n<p><strong>Explanation:<\/strong><\/p>\n<p>\u2018ImageLabel\u2019 is to place an image in the window. The parameter expands declared as True so that even if we resize the window, image remains in the center.<\/p>\n<p><strong>Major function:<\/strong><\/p>\n<p>\u2018rolling_dice\u2019 function is a function that is executed every time a button is clicked. This is attained through the \u2018command=rolling_dice\u2019 parameter while defining a button.<\/p>\n<h4>Step 6: Forming a list of images to be randomly displayed<\/h4>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"># call the mainloop of Tk\r\n# keeps window open\r\nroot.mainloop()\r\n<\/pre>\n<p><strong>Explanation:<\/strong><\/p>\n<p>\u2018root.mainloop()\u2019 is used to open the main window. It acts as the main function of our program.<\/p>\n<h3>Dice Rolling Simulator Python Output<\/h3>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/dice-rolling-simulator.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-80507\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/dice-rolling-simulator.png\" alt=\"dice rolling simulator\" width=\"1315\" height=\"664\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/dice-rolling-simulator.png 1315w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/dice-rolling-simulator-300x151.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/dice-rolling-simulator-1024x517.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/dice-rolling-simulator-150x76.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/dice-rolling-simulator-768x388.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/dice-rolling-simulator-520x263.png 520w\" sizes=\"auto, (max-width: 1315px) 100vw, 1315px\" \/><\/a><\/p>\n<h2>Conclusion<\/h2>\n<p>Yay! We have successfully developed a cool application &#8211; Dice Rolling Simulator in Python. Now, you can just click on a button and get your next number. Cheers to Python and its package \u2018Tkinter\u2019 which supports functions and makes our work easy. Who would have thought that we can develop an application by only the \u2018random\u2019 function of python? As of now, we have an understanding of Python, Tkinter, and random function.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Snake and Ladders, Ludo and Checkers, are the most favorite games of all time. But, it feels terrible when you drop the plan of playing just because you couldn\u2019t find the dice. So, here&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":80583,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[21620,22904,21082,22734],"class_list":["post-80488","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-dice-rolling-simulator","tag-dice-rolling-simulator-python","tag-python-project","tag-python-project-for-beginners"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Dice Rolling Simulator Python Game [Source Code Included] - DataFlair<\/title>\n<meta name=\"description\" content=\"Dice Rolling Simulator in Python - Develop a dice simulator in Python with Tkinter, this is a nice project for beginners to start the work. This project needs basic python knowledge like random function and tkinter\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/dice-rolling-simulator-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Dice Rolling Simulator Python Game [Source Code Included] - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Dice Rolling Simulator in Python - Develop a dice simulator in Python with Tkinter, this is a nice project for beginners to start the work. This project needs basic python knowledge like random function and tkinter\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/dice-rolling-simulator-python\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-10T08:03:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-01T06:35:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/dice-rolling-simulator-python.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Dice Rolling Simulator Python Game [Source Code Included] - DataFlair","description":"Dice Rolling Simulator in Python - Develop a dice simulator in Python with Tkinter, this is a nice project for beginners to start the work. This project needs basic python knowledge like random function and tkinter","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:\/\/data-flair.training\/blogs\/dice-rolling-simulator-python\/","og_locale":"en_US","og_type":"article","og_title":"Dice Rolling Simulator Python Game [Source Code Included] - DataFlair","og_description":"Dice Rolling Simulator in Python - Develop a dice simulator in Python with Tkinter, this is a nice project for beginners to start the work. This project needs basic python knowledge like random function and tkinter","og_url":"https:\/\/data-flair.training\/blogs\/dice-rolling-simulator-python\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2020-08-10T08:03:19+00:00","article_modified_time":"2026-06-01T06:35:37+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/dice-rolling-simulator-python.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/dice-rolling-simulator-python\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/dice-rolling-simulator-python\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Dice Rolling Simulator Python Game [Source Code Included]","datePublished":"2020-08-10T08:03:19+00:00","dateModified":"2026-06-01T06:35:37+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/dice-rolling-simulator-python\/"},"wordCount":724,"commentCount":23,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/dice-rolling-simulator-python\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/dice-rolling-simulator-python.jpg","keywords":["Dice Rolling Simulator","dice rolling simulator python","Python project","python project for beginners"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/dice-rolling-simulator-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/dice-rolling-simulator-python\/","url":"https:\/\/data-flair.training\/blogs\/dice-rolling-simulator-python\/","name":"Dice Rolling Simulator Python Game [Source Code Included] - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/dice-rolling-simulator-python\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/dice-rolling-simulator-python\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/dice-rolling-simulator-python.jpg","datePublished":"2020-08-10T08:03:19+00:00","dateModified":"2026-06-01T06:35:37+00:00","description":"Dice Rolling Simulator in Python - Develop a dice simulator in Python with Tkinter, this is a nice project for beginners to start the work. This project needs basic python knowledge like random function and tkinter","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/dice-rolling-simulator-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/dice-rolling-simulator-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/dice-rolling-simulator-python\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/dice-rolling-simulator-python.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/08\/dice-rolling-simulator-python.jpg","width":1200,"height":628,"caption":"dice rolling simulator python"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/dice-rolling-simulator-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Python Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/python\/"},{"@type":"ListItem","position":3,"name":"Dice Rolling Simulator Python Game [Source Code Included]"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/80488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=80488"}],"version-history":[{"count":5,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/80488\/revisions"}],"predecessor-version":[{"id":148580,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/80488\/revisions\/148580"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/80583"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=80488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=80488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=80488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}