

{"id":108462,"date":"2022-07-10T15:00:13","date_gmt":"2022-07-10T09:30:13","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=108462"},"modified":"2026-06-01T12:12:27","modified_gmt":"2026-06-01T06:42:27","slug":"python-blackjack-game","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/python-blackjack-game\/","title":{"rendered":"Create Blackjack Game using Python"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:2521,&quot;href&quot;:&quot;https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1Wue_S2jBwrVnHTUq5SkHevSLvwosvs9Q\\\/view?usp=drive_link&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20260601064343\\\/https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1Wue_S2jBwrVnHTUq5SkHevSLvwosvs9Q\\\/view?usp=drive_link&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-06-01 10:51:59&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-05 12:59:04&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-10 01:48:17&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-13 07:14:44&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-13 07:14:44&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]'><\/div>\n<p>If you are one of the deck cards players, then you would be familiar with the blackjack game. If not, don\u2019t worry we will get to know and build one to play. So, let\u2019s create Blackjack Game using Python.<\/p>\n<h3>What is a Blackjack Game?<\/h3>\n<p>Blackjack is one of the casino games of luck and strategy, also known as 21. In this, the player tries to keep the amount of all the cards sum up to 21 without exceeding it.<\/p>\n<p>In this A will be treated as 1\/11, and Jacks, Queens, and Kings will be 10. And the game goes like this:<\/p>\n<p>1. The dealer and player get two cards that are not disclosed to the opponent.<\/p>\n<p>2. Now the player gets to choose between hitting, staying.<\/p>\n<p>3. If hitting is chosen, then another card will be given to the player.<\/p>\n<p>4. If the choice is staying, allowed only when the count is greater than 11, then the result is shown based on the conditions:<\/p>\n<p>a. If the player\u2019s score is greater than 21 or when the dealer\u2019s score is less than 21 but greater than that of the player, then the dealer wins<\/p>\n<p>b. If the above case is with the dealer\u2019s score then the Player wins<\/p>\n<p>c. Or else it&#8217;s a tie.<\/p>\n<p>5. And another choice is to shuffle where the cards are mixed randomly.<\/p>\n<p>6. The last choice is to start the game again<\/p>\n<h3>Blackjack Game in Python<\/h3>\n<p>We will be using the Tkinter module to build the game. And the random module for shuffling. In this, we will be using the pre-downloaded card images named in the format \u2018cardNumber_suitName\u2019 to show on the window.<\/p>\n<h3>Download the Python Blackjack Game<\/h3>\n<p>Please download the source code for the blackjack game using the link: <a href=\"https:\/\/drive.google.com\/file\/d\/1Wue_S2jBwrVnHTUq5SkHevSLvwosvs9Q\/view?usp=drive_link\"><strong>Python Blackjack Game Source Code<\/strong><\/a><\/p>\n<h3>Project Prerequisites<\/h3>\n<p>The prior knowledge of Python and the Tkinter module would help you in developing this game. And you can install the Tkinter module, if not installed yet, using the command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">pip install tk<\/pre>\n<h3>Steps to build Blackjack Game using Python<\/h3>\n<p>To build this game, we will be following steps:<\/p>\n<p>1. First, we start by importing modules<\/p>\n<p>2. We create a window and set properties<\/p>\n<p>3. And we add the required components to window<\/p>\n<p>4. We then create a function to load all the images from device<\/p>\n<p>5. And then a function to pick a card<\/p>\n<p>6. Then write a function to calculate the total of the cards<\/p>\n<p>7. Then write functions to run on hitting and staying<\/p>\n<p>8. After this, we write functions for shuffling and for new game<\/p>\n<p>9. Then write code to create global variables, load images, and run game<\/p>\n<h4>1. Importing modules<\/h4>\n<p>First, we start by importing the Tkinter and the random modules that we discussed above. Here we also import the font from Tkinter to add some style to the text.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import random\r\nimport tkinter\r\nfrom tkinter.font import BOLD\r\n<\/pre>\n<h4>2. Creating a window<\/h4>\n<p>Now we create a new window with the title and the size set using the attributes title() and geometry().<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">gameWindow = tkinter.Tk()\r\n\r\n# Set up the screen and frames for the dealer and player\r\ngameWindow.title(\"DataFlair Black Jack\")\r\ngameWindow.geometry(\"640x480\")\r\n<\/pre>\n<h4>3. Adding the widgets<\/h4>\n<p>Now we add the following widgets:<\/p>\n<p><strong>a. Label<\/strong><\/p>\n<ul>\n<li>To show the title<\/li>\n<li>Show the winner on calculating and comparing scores<\/li>\n<li>Show the scores of player and dealer<\/li>\n<\/ul>\n<p><strong>b. Frames<\/strong><\/p>\n<ul>\n<li>To show the cards of player and dealer<\/li>\n<\/ul>\n<p><strong>c. Buttons for the following operations<\/strong><\/p>\n<ul>\n<li>Hit<\/li>\n<li>Stay<\/li>\n<li>Shuffling<\/li>\n<li>Start a new game<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">tkinter.Label(gameWindow, text='DataFlair Black Jack',\r\n      fg='black', font=('Courier', 20,BOLD)).place(x=150, y=10)\r\n\r\nwinner=tkinter.StringVar()\r\nresult = tkinter.Label(gameWindow, textvariable=winner,fg='black',font=('Courier', 15))\r\nresult.place(x=250,y=50)\r\n\r\ndealerScore = tkinter.IntVar()\r\ntkinter.Label(gameWindow, text=\"Dealer Score:\", fg=\"black\",bg=\"white\").place(x=10,y=80)\r\ntkinter.Label(gameWindow, textvariable=dealerScore, fg=\"black\",bg=\"white\").place(x=10,y=100)\r\n# embedded frame to hold the card images\r\ndealer_cardFrame = tkinter.Frame(gameWindow, bg=\"black\")\r\ndealer_cardFrame.place(x=100,y=80)\r\n\r\nplayerScore = tkinter.IntVar()\r\n\r\ntkinter.Label(gameWindow, text=\"Player Score:\", fg=\"black\",bg=\"white\").place(x=10,y=200)\r\ntkinter.Label(gameWindow, textvariable=playerScore,fg=\"black\",bg=\"white\").place(x=10,y=220)\r\n# embedded frame to hold the card images\r\nplayer_card_frame = tkinter.Frame(gameWindow, bg=\"black\")\r\nplayer_card_frame.place(x=100,y=200)\r\n\r\nplayer_button = tkinter.Button(gameWindow, text=\"Hit\", command=hitting, padx=8)\r\nplayer_button.place(x=50,y=350)\r\n\r\ndealer_button = tkinter.Button(gameWindow, text=\"Stay\", command=staying, padx=5)\r\ndealer_button.place(x=150,y=350)\r\n\r\nreset_button = tkinter.Button(gameWindow, text=\"New Game\", command=new_game)\r\nreset_button.place(x=250,y=350)\r\n\r\nshuffle_button = tkinter.Button(gameWindow, text=\"Shuffle\", command=shuffle, padx=2)\r\nshuffle_button.place(x=380,y=350)\r\n<\/pre>\n<h4>4. Creating a function to load images<\/h4>\n<p>Now we create a list of all suits and the face cards. And run a loop for all suits and an inner loop to get all the cards 1-10,J,Q,K from each suit, to get allcard images.<\/p>\n<p>In the inner for loop, we run from 1-10 and for J,Q,K separately. And get the path of the cards and read the image and append it to the list \u2018card_images\u2019.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># function for retrieving the images of the cards from device\r\ndef getCardImages(card_images):\r\n    suits = ['heart', 'club', 'diamond', 'spade']\r\n    faceCards = ['jack', 'queen', 'king']\r\n\r\n    ext= 'png'\r\n    for suit in suits:\r\n        # adding the number cards 1 to 10\r\n        for card in range(1, 11):\r\n            path= 'C:\/Users\/DELL\/Downloads\/cards\/{}_{}.{}'.format(str(card), suit, ext)\r\n            image = tkinter.PhotoImage(file=path)\r\n            card_images.append((card, image, ))\r\n\r\n        # adding the face cards\r\n        for card in faceCards:\r\n            path= 'C:\/Users\/DELL\/Downloads\/cards\/{}_{}.{}'.format(str(card), suit, ext)\r\n            image = tkinter.PhotoImage(file=path)\r\n            card_images.append((10, image, ))\r\n<\/pre>\n<h4>5. Creating a function to pick a card<\/h4>\n<p>In this, we get the first element of the deck, show it on the screen and add it to the deck at the end.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">def getCard(frame):\r\n    # pop the card on the top of the deck\r\n    next_card = deck.pop(0)\r\n    # and add it to the deck at the end\r\n    deck.append(next_card)\r\n    # show the image to a label\r\n    tkinter.Label(frame, image=next_card[1], relief=\"raised\").pack(side=\"left\")\r\n    # return the card\r\n    return next_card\r\n<\/pre>\n<h4>6. Creating a function to calculate score<\/h4>\n<p>Now, we calculate the score by running through all the cards of a player and add the score by following the conditions:<\/p>\n<p>a. Ace is taken as 11 only once and the rest of the time it is considered as 1 while finding the sum of the values on cards<\/p>\n<p>b. If the total score is greater than 21, and if there is an ace, reconsider it as 1 by subtracting the total by 10<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Function to calculate the total score of all cards in the list\r\ndef calcScore(hand):\r\n    score = 0\r\n    ace = False\r\n    for next_card in hand:\r\n        card_value = next_card[0]\r\n        # Ace is considered as 11 only once and rest of the time it is taken as 1\r\n        if card_value == 1 and not ace:\r\n            ace = True\r\n            card_value = 11\r\n        score += card_value\r\n        # if its a bust, check if there is an ace and subtract 10\r\n        if score &gt; 21 and ace:\r\n            score -= 10\r\n            ace = False\r\n    return score\r\n<\/pre>\n<h4>7. Functions for hit and stay options<\/h4>\n<p>The staying() function first gets a score and if it&#8217;s less than 17, adds another card to the dealer\u2019s deck and gets the new score.Then the score of the player is calculated and the winner is decided based on the conditions we discussed initially.<\/p>\n<p>In the function hitting, a new card is given to the player and the new score is calculated. Then, if the score is more than 21 the dealer is the winner.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#Show the winner when the player stays\r\ndef staying():\r\n    dealer_score = calcScore(dealer_hand)\r\n    while 0 &lt; dealer_score &lt; 17:\r\n        dealer_hand.append(getCard(dealer_cardFrame))\r\n        dealer_score = calcScore(dealer_hand)\r\n        dealerScore.set(dealer_score)\r\n\r\n    player_score = calcScore(player_hand)\r\n    if player_score &gt; 21 or dealer_score &gt; player_score:\r\n        winner.set(\"Dealer wins!\")\r\n    elif dealer_score &gt; 21 or dealer_score &lt; player_score:\r\n        winner.set(\"Player wins!\")\r\n    else:\r\n        winner.set(\"Draw!\")\r\n\r\n#Show the winner when the player hits\r\ndef hitting():\r\n    player_hand.append(getCard(player_card_frame))\r\n    player_score = calcScore(player_hand)\r\n\r\n    playerScore.set(player_score)\r\n    if player_score &gt; 21:\r\n        winner.set(\"Dealer Wins!\")\r\n<\/pre>\n<h4>8. Functions for shuffling and new game<\/h4>\n<p>The initial_deal() function gives two cards to the player and a card to the dealer. And also shows the dealer\u2019s score.<\/p>\n<p>The new_game() function resets the frames, lists, and the winner label. And the shuffle() function randomly shuffles the cards in the list deck.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">def initial_deal():\r\n    hitting()\r\n    dealer_hand.append(getCard(dealer_cardFrame))\r\n    dealerScore.set(calcScore(dealer_hand))\r\n    hitting()\r\n\r\n\r\ndef new_game():\r\n    global dealer_cardFrame\r\n    global player_card_frame\r\n    global dealer_hand\r\n    global player_hand\r\n    # embedded frame to hold the card images\r\n    dealer_cardFrame.destroy()\r\n    dealer_cardFrame = tkinter.Frame(gameWindow, bg=\"black\")\r\n    dealer_cardFrame.place(x=100,y=80)\r\n   \r\n    # embedded frame to hold the card images\r\n    player_card_frame.destroy()\r\n    player_card_frame = tkinter.Frame(gameWindow, bg=\"black\")\r\n    player_card_frame.place(x=100,y=200)\r\n\r\n    winner.set(\"\")\r\n\r\n    # Create the list to store the dealer's and player's hands\r\n    dealer_hand = []\r\n    player_hand = []\r\n    initial_deal()\r\n\r\n\r\ndef shuffle():\r\n    random.shuffle(deck)\r\n<\/pre>\n<h4>9. Creating global variables, loading images, and running the game<\/h4>\n<p>Finally, we create the lists to hold all the cards, players and dealers cards. And then load all the cards images and initialize the game.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># load cards\r\ncards = []\r\n\r\ndeck = list(cards) + list(cards) + list(cards)\r\nshuffle()\r\n\r\n# Create the list to store the dealer's and player's hands\r\ndealer_hand = []\r\nplayer_hand = []\r\n\r\ngetCardImages(cards)\r\ninitial_deal()\r\n\r\ngameWindow.mainloop()\r\n<\/pre>\n<h3>Output of Python Blackjack Game<\/h3>\n<p>Blackjack game game window<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/output-python-blackjack-game.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110372\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/output-python-blackjack-game.webp\" alt=\"output python blackjack game\" width=\"789\" height=\"630\" \/><\/a><\/p>\n<h3>Summary<\/h3>\n<p>Congratulations, you have successfully built the blackjack game! Hope you found it informative and interesting. Keep practicing!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are one of the deck cards players, then you would be familiar with the blackjack game. If not, don\u2019t worry we will get to know and build one to play. So, let\u2019s&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":110373,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[21629,27053,27052,26717,27054,26718,25791,21082,22734],"class_list":["post-108462","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-basic-python-project-ideas","tag-black-jack-game","tag-play-black-jack","tag-python-blackjack-game","tag-python-blackjack-game-project","tag-python-blackjack-game-project-with-source-code","tag-python-game-project","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>Create Blackjack Game using Python - DataFlair<\/title>\n<meta name=\"description\" content=\"Develop Blackjack Game project using Python in easy steps. Blackjack is one of the casino games of luck and strategy, also known as 21.\" \/>\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\/python-blackjack-game\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create Blackjack Game using Python - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Develop Blackjack Game project using Python in easy steps. Blackjack is one of the casino games of luck and strategy, also known as 21.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/python-blackjack-game\/\" \/>\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=\"2022-07-10T09:30:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-01T06:42:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/python-game-project-blackjack-game.webp\" \/>\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\/webp\" \/>\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=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create Blackjack Game using Python - DataFlair","description":"Develop Blackjack Game project using Python in easy steps. Blackjack is one of the casino games of luck and strategy, also known as 21.","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\/python-blackjack-game\/","og_locale":"en_US","og_type":"article","og_title":"Create Blackjack Game using Python - DataFlair","og_description":"Develop Blackjack Game project using Python in easy steps. Blackjack is one of the casino games of luck and strategy, also known as 21.","og_url":"https:\/\/data-flair.training\/blogs\/python-blackjack-game\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2022-07-10T09:30:13+00:00","article_modified_time":"2026-06-01T06:42:27+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/python-game-project-blackjack-game.webp","type":"image\/webp"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/python-blackjack-game\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/python-blackjack-game\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/b49855299264df5e27e3ec6c2cd9fde9"},"headline":"Create Blackjack Game using Python","datePublished":"2022-07-10T09:30:13+00:00","dateModified":"2026-06-01T06:42:27+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-blackjack-game\/"},"wordCount":919,"commentCount":1,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-blackjack-game\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/python-game-project-blackjack-game.webp","keywords":["basic python project ideas","black jack game","play black jack","Python Blackjack Game","Python Blackjack Game project","Python Blackjack Game project with source code","python game project","Python project","python project for beginners"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/python-blackjack-game\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/python-blackjack-game\/","url":"https:\/\/data-flair.training\/blogs\/python-blackjack-game\/","name":"Create Blackjack Game using Python - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-blackjack-game\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-blackjack-game\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/python-game-project-blackjack-game.webp","datePublished":"2022-07-10T09:30:13+00:00","dateModified":"2026-06-01T06:42:27+00:00","description":"Develop Blackjack Game project using Python in easy steps. Blackjack is one of the casino games of luck and strategy, also known as 21.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/python-blackjack-game\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/python-blackjack-game\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/python-blackjack-game\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/python-game-project-blackjack-game.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/python-game-project-blackjack-game.webp","width":1200,"height":628},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/python-blackjack-game\/#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":"Create Blackjack Game using Python"}]},{"@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\/b49855299264df5e27e3ec6c2cd9fde9","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ef46b745ddad2fad690af626c6ef29b91809ad0a9f5ef398d07817d8cad042f5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ef46b745ddad2fad690af626c6ef29b91809ad0a9f5ef398d07817d8cad042f5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ef46b745ddad2fad690af626c6ef29b91809ad0a9f5ef398d07817d8cad042f5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team is a group of passionate educators and industry experts dedicated to providing high-quality online learning resources on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. With years of experience in the field, the team aims to simplify complex topics and help learners advance their careers. At DataFlair, we believe in empowering students and professionals with the knowledge and skills needed to thrive in today\u2019s fast-paced tech industry. Follow us for Free courses, expert insights, tutorials, and practical tips to boost your learning journey.","url":"https:\/\/data-flair.training\/blogs\/author\/datafbdad\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/108462","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=108462"}],"version-history":[{"count":4,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/108462\/revisions"}],"predecessor-version":[{"id":148592,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/108462\/revisions\/148592"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/110373"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=108462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=108462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=108462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}