{"id":1433,"date":"2018-10-07T10:17:29","date_gmt":"2018-10-07T08:17:29","guid":{"rendered":"https:\/\/pythonprogramming.altervista.org\/?p=1433"},"modified":"2018-11-05T07:47:32","modified_gmt":"2018-11-05T06:47:32","slug":"how-to-make-a-kahoot-fast-with-python","status":"publish","type":"post","link":"https:\/\/pythonprogramming.altervista.org\/how-to-make-a-kahoot-fast-with-python\/","title":{"rendered":"How to make a Kahoot fast with Python"},"content":{"rendered":"<h1>What is kahoot<\/h1>\n<p><a href=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2018\/10\/finanziario_o_economico.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1439\" src=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2018\/10\/finanziario_o_economico.png\" alt=\"\" width=\"984\" height=\"511\" srcset=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2018\/10\/finanziario_o_economico.png 984w, https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2018\/10\/finanziario_o_economico-320x166.png 320w, https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2018\/10\/finanziario_o_economico-768x399.png 768w, https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2018\/10\/finanziario_o_economico-960x499.png 960w\" sizes=\"auto, (max-width: 984px) 100vw, 984px\" \/><\/a><\/p>\n<p><strong>Kahoot<\/strong> is a site for <strong>quiz<\/strong> that you can make on <strong>kahoot.com<\/strong> and play in kahoot.it. To make the quiz easily you can use a template in <strong>Excel<\/strong>, but to do it even more easily, you can use <strong>Python<\/strong> to make the Excel file, right? What I mean is that it is very tedious for me to write the text in every cell of Excel and then to go to the next row and so on. It can be not a big deal if you want to insert few questions and answer, but if you want to make a &#8220;big&#8221; quiz with 4 multiple choice for 50 question, you shoud input something like 50 x 7 = 350 data into the cell. Another boring stuff is to add the right answer. You have to give a non obvious path to the sequence of answer, so you waste other time thinking if you want that the right answer is the first, the second etc. So I think that it would be nice to make a script that make you get the data from a txt file where you put the question in a row, the multile choice in the following row, the time of the answer (you can choose it too in Kahoot) and the right answer is always the first, leaving to the script to shuffle the answer and to write the right one into the Ecel file. That is our plan, now let&#8217;s execute it.<\/p>\n<h2>Create a lot of questions in a second<\/h2>\n<p>Let&#8217;s create 30 questions in a moment with this code:<\/p>\n<pre class=\"lang:default decode:true\">from random import choice, sample\r\n\r\n# THE DIFFERENT CATEGORIES OF ACCOUNTS\r\n\r\nfinanziari = \"\"\"\r\ncassa\r\ncrediti\r\ndebiti\r\ncrediti verso clienti\r\nassegni\r\ncambiali\r\ndenaro in cassa\r\nBanca c\/c\r\nIva a nostro credito\r\nIva a nostro debito\r\nratei attivi\r\nratei passivi\r\nmutui passivi\r\nmutui attivi\r\ndebiti verso fornitori\r\n\"\"\"\r\n\r\neconomici = \"\"\"\r\nmerci in magazzino\r\nmerci c\/vendite\r\nmerci c\/acquisti\r\nautomezzi\r\nfabbricati\r\nbrevetti\r\nsoftware\r\ncomputer\r\narredamenti\r\ncosti d'impianto\r\ninteressi attivi\r\ninteressi passivi\r\nspese di trasporto\r\nattrezzature\r\nimpianti\r\nterreni\r\nfabbricati\"\"\"\r\n\r\nfinanziari = finanziari.splitlines()[1:]\r\neconomici = economici.splitlines()[1:]\r\nconti = finanziari + economici\r\n\r\n# contains the choice between type of account\r\ndef pick(list_of_account):\r\n    \"Take an account from list_of_account, pop it, give rg=1 if finanziario of 2 if economico\"\r\n    account = list_of_account.pop(list_of_account.index(choice(list_of_account)))\r\n    if account in finanziari:\r\n        rg = 1\r\n    else:\r\n        rg = 2\r\n    return account, rg\r\n\r\n\r\ndef frase():\r\n    \"Crea la frase in base al fatto che si tratta di un conto economico o finanziario\"\r\n    global R1, R2, conti, finanziari, economici\r\n    conto, rg = pick(conti)\r\n    return f\"Il conto {conto} \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, , , 15, {rg}\"\r\n\r\n\r\nfor n in range(len(conti)):\r\n    print(frase())<\/pre>\n<p>After you run the code, copy and paste into the template of Kahoot. You have to choose data in the menu and then separate the data from comma. In this code two answers are generated. In case of some problems, select the empty cells (3rd and 4th answer) in excel and clear them hitting the cancel button.<\/p>\n<p>The result of the code is this:<\/p>\n<pre class=\"lang:default decode:true \">Il conto cassa \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 1\r\nIl conto  assegni \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 1\r\nIl conto  denaro in cassa \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 1\r\nIl conto  terreni \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 2\r\nIl conto  Iva a nostro credito \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 1\r\nIl conto  debiti verso fornitori \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 1\r\nIl conto  mutui passivi \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 1\r\nIl conto  impianti \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 2\r\nIl conto  automezzi \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 2\r\nIl conto  merci c\/acquisti \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 2\r\nIl conto  ratei passivi \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 1\r\nIl conto  arredamenti \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 2\r\nIl conto  computer \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 2\r\nIl conto  Iva a nostro debito \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 1\r\nIl conto  debiti \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 1\r\nIl conto  crediti verso clienti \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 1\r\nIl conto  costi d'impianto \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 2\r\nIl conto  fabbricati \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 2\r\nIl conto  ratei attivi \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 1\r\nIl conto  mutui attivi \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 1\r\nIl conto  cambiali \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 1\r\nIl conto  crediti \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 1\r\nIl conto  Banca c\/c \u00e8 un conto finanziario o economico?, FINANZIARIO, ECONOMICO, 0, 0, 15, 1<\/pre>\n<p>When you copy this into the template:<\/p>\n<p><a href=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2018\/10\/excel.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1442\" src=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2018\/10\/excel.png\" alt=\"\" width=\"1492\" height=\"694\" srcset=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2018\/10\/excel.png 1492w, https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2018\/10\/excel-320x149.png 320w, https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2018\/10\/excel-768x357.png 768w, https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2018\/10\/excel-960x447.png 960w\" sizes=\"auto, (max-width: 1492px) 100vw, 1492px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/play.kahoot.it\/#\/?quizId=039521bf-e1fb-45b0-af23-82ebe9582f42\">Play this Kahoot<\/a><\/p>\n<h2>An example with 4 choices<\/h2>\n<p>In this example we will have 4 choises, always the same, for different actions.<\/p>\n<pre class=\"lang:default decode:true \">from random import choice, sample\r\n\r\n# THE DIFFERENT CATEGORIES OF ACCOUNTS\r\n\r\ncosti = \"\"\"\r\nuna merce acquistata\r\nun fabbricato acquistato\r\ndi un'attrezzatura che ho acquistato\r\ninteressi che sono maturati su un prestito ricevuto\r\nuna spesa per trasporto fatturata all'impresa dal fornitore\r\nuna bolletta per utenze elettriche ricevuta dall'impresa\r\n\"\"\"\r\n\r\nricavi = \"\"\"\r\ninteressi maturati su una dilazione di pagamento concessa ad un cliente\r\nuna merce venduta\r\nun prodotto venduto\r\nun servizio fatturato ad un cliente\r\n\"\"\"\r\n\r\nentrate = \"\"\"\r\nl'incasso di una fattura in contanti\r\nun bonifico a favore dell'impresa\r\n\"\"\"\r\n\r\nuscite = \"\"\"\r\nun bonifico che l'impresa invia per pagare un fornitore\r\n20 euro pagati ad un fornitore\r\nun assegno firmato per pagare un fornitore\r\n\"\"\"\r\n\r\ncosti = costi.splitlines()[1:]\r\nricavi = ricavi.splitlines()[1:]\r\nentrate = entrate.splitlines()[1:]\r\nuscite = uscite.splitlines()[1:]\r\nazioni = costi + ricavi + entrate + uscite\r\n\r\n# OPTIONS\r\nR1 = \"UN COSTO\"\r\nR2 = \"UN RICAVO\"\r\nR3 = \"UN'ENTRATA\"\r\nR4 = \"UN'USCITA\"\r\n\r\n# contains the choice between type of account\r\ndef pick(list_of_account):\r\n    \"Take an account from list_of_account, pop it, give rg=1 if finanziario of 2 if economico\"\r\n    action = list_of_account.pop(list_of_account.index(choice(list_of_account)))\r\n    if action in costi:\r\n        rg = 1\r\n    elif action in ricavi:\r\n        rg = 2\r\n    elif action in entrate:\r\n        rg = 3\r\n    elif action in uscite:\r\n        rg = 4\r\n    return action, rg\r\n\r\n\r\ndef frase():\r\n    \"Crea la frase in base al fatto che si tratta di un conto economico o finanziario\"\r\n    global R1, R2, azioni, costi, ricavi, entrate, uscite\r\n    azione, rg = pick(azioni)\r\n    return f\"Il valore di {azione} \u00e8?, {R1}, {R2}, {R3} , {R4}, 20, {rg}\"\r\n\r\n\r\nfor n in range(len(azioni)):\r\n    print(frase())<\/pre>\n<p>What we get is this:<\/p>\n<pre class=\"lang:default decode:true \">Il valore di una merce venduta \u00e8 un costo, un ricavo, un'entrata o un'uscita?, COSTO, RICAVO, ENTRATA , USCITA, 20, 2\r\nIl valore di un assegno firmato per pagare un fornitore \u00e8 un costo, un ricavo, un'entrata o un'uscita?, COSTO, RICAVO, ENTRATA , USCITA, 20, 4\r\nIl valore di una merce acquistata \u00e8 un costo, un ricavo, un'entrata o un'uscita?, COSTO, RICAVO, ENTRATA , USCITA, 20, 1\r\nIl valore di un fabbricato acquistato \u00e8 un costo, un ricavo, un'entrata o un'uscita?, COSTO, RICAVO, ENTRATA , USCITA, 20, 1\r\nIl valore di interessi che sono maturati su un prestito ricevuto \u00e8 un costo, un ricavo, un'entrata o un'uscita?, COSTO, RICAVO, ENTRATA , USCITA, 20, 1\r\nIl valore di una spesa per trasporto fatturata all'impresa dal fornitore \u00e8 un costo, un ricavo, un'entrata o un'uscita?, COSTO, RICAVO, ENTRATA , USCITA, 20, 1\r\nIl valore di un bonifico che l'impresa invia per pagare un fornitore \u00e8 un costo, un ricavo, un'entrata o un'uscita?, COSTO, RICAVO, ENTRATA , USCITA, 20, 4\r\nIl valore di una bolletta per utenze elettriche ricevuta dall'impresa \u00e8 un costo, un ricavo, un'entrata o un'uscita?, COSTO, RICAVO, ENTRATA , USCITA, 20, 1\r\nIl valore di l'incasso di una fattura in contanti \u00e8 un costo, un ricavo, un'entrata o un'uscita?, COSTO, RICAVO, ENTRATA , USCITA, 20, 3\r\nIl valore di interessi maturati su una dilazione di pagamento concessa ad un cliente \u00e8 un costo, un ricavo, un'entrata o un'uscita?, COSTO, RICAVO, ENTRATA , USCITA, 20, 2\r\nIl valore di un bonifico a favore dell'impresa \u00e8 un costo, un ricavo, un'entrata o un'uscita?, COSTO, RICAVO, ENTRATA , USCITA, 20, 3\r\nIl valore di 20 euro pagati ad un fornitore \u00e8 un costo, un ricavo, un'entrata o un'uscita?, COSTO, RICAVO, ENTRATA , USCITA, 20, 4\r\nIl valore di un prodotto venduto \u00e8 un costo, un ricavo, un'entrata o un'uscita?, COSTO, RICAVO, ENTRATA , USCITA, 20, 2\r\nIl valore di di un'attrezzatura che ho acquistato \u00e8 un costo, un ricavo, un'entrata o un'uscita?, COSTO, RICAVO, ENTRATA , USCITA, 20, 1\r\nIl valore di un servizio fatturato ad un cliente \u00e8 un costo, un ricavo, un'entrata o un'uscita?, COSTO, RICAVO, ENTRATA , USCITA, 20, 2\r\n&gt;&gt;&gt;<\/pre>\n<p>As before, copy this code into the excel template (importing data in a way that it will separate the data with the comma as separator, and then upload it into the <strong>kahoot<\/strong> quiz. Have fun with your quizzes!<\/p>\n<p>&nbsp;<\/p>\n<h4>Utilities<\/h4>\r\n<a href=\"https:\/\/pythonprogramming.altervista.org\/mind-map-with-python\/\">\r\n<img decoding=\"async\" src=\"https:\/\/i1.wp.com\/pythonprogramming.altervista.org\/wp-content\/uploads\/2019\/12\/PYDOT.png?resize=321%2C229&ssl=1\"><\/a>\r\n<script>\r\nvar title = \"Utility\";\r\nvar links = [Mak\r\n\t\t\t e\r\n\t[\"https:\/\/pythonprogramming.altervista.org\/create-exe-from-python-script-with-images-with-pyinstaller\/\",\"Make Exe cointaining Images\"],\r\n\t[\"https:\/\/pythonprogramming.altervista.org\/send-email-to-different-people-with-python\/\",\"Send More Email at the same time\"],\r\n\t[\"https:\/\/pythonprogramming.altervista.org\/convert-some-data-into-another-format\/\",\"Convert data separation type into another\"],\r\n\t[\"https:\/\/pythonprogramming.altervista.org\/use-sublime-integrated-with-github\/\",\"Github + Sublime text 3\"],\r\n\t[\"https:\/\/pythonprogramming.altervista.org\/make-html-tables-with-pandas\/\",\"Excel to Html Table with Pandas\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/create-a-beautiful-html-table-with-python\/\",\"Beautiful Html Table made with Python\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/split-images-with-pil-aka-pillow-and-python-for-sprite-animation\/\",\"Crop images\"],\r\n\t[\"https:\/\/pythonprogramming.altervista.org\/sublime-text-snippets-how-to-use-them\/\",\"Snippets in Sublime Text\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/create-a-presentation-html-page-with-all-the-images-in-a-folder-in-a-second\/\",\"Create Html page with images using Python in seconds\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/mind-map-with-python\/\",\"Mind Maps & Python (Pydot)\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/pixelize-an-image-with-pil-and-python\/\",\"Pixelize images\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/tkinter-to-make-pdf-fast-and-free-with-text-or-html\/\",\"Create PDF with Tkinter\"],\r\n[\"\",\"Python Lauches a file in Chrome 2\"],\r\n [\"https:\/\/pythonprogramming.altervista.org\/create-an-html-page-and-launch-it-with-cefpython3-in-chrome\/\",\r\n  \"Python launches a local file in Chrome 2\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/python-to-powerpoint-2-0\/\",\"Python vs Powerpoint v.2\"],\r\n[\"https:\/\/pythonprogramming.altervista.org\/what-if-you-got-dns_probe_finished_nxdomain-with-glitch-me-sites\/\",\"Cannot open a site (dns solution)\"],\r\n['https:\/\/pythonprogramming.altervista.org\/convert-text-to-html-docx-and-pdf\/', 'Covert txt to html, docx and pdf'],\r\n['https:\/\/pythonprogramming.altervista.org\/capture-screenshot-with-python-and-lackey\/', 'Capture screenshot'],\r\n['https:\/\/pythonprogramming.altervista.org\/check-if-a-directory-exists-with-python\/', 'Check if a directory exists'],\r\n['https:\/\/pythonprogramming.altervista.org\/how-to-copy-all-the-files-in-a-directory\/', 'Copy all files in a folder'],\r\n['https:\/\/pythonprogramming.altervista.org\/put-some-order-in-my-files-with-python-with-filecollector\/', 'Copy many file on pc in one folder'],\r\n['https:\/\/pythonprogramming.altervista.org\/creare-una-tabella-con-python\/', 'Creare tabelle html con python'],\r\n['https:\/\/pythonprogramming.altervista.org\/make-an-image-with-text-with-python\/', 'Create an image with text'],\r\n['https:\/\/pythonprogramming.altervista.org\/create-an-exe-with-pyinstaller\/', 'Exe from .py (pyinstaller)'],\r\n['https:\/\/pythonprogramming.altervista.org\/create-a-test-in-html-from-a-txt-file\/', 'Format test in html from txt file'],\r\n['https:\/\/pythonprogramming.altervista.org\/freezing-dependencies-hell-on-python-2018\/', 'Freeze dependencies'],\r\n['https:\/\/pythonprogramming.altervista.org\/google-text-to-speech-example-of-gui-to-create-mp3-from-text\/', 'GUI to create MP3 (gtts)'],\r\n['https:\/\/pythonprogramming.altervista.org\/git-basic-commands-to-keep-track-of-your-project\/', 'Git and Github'],\r\n['https:\/\/pythonprogramming.altervista.org\/grab-a-web-page-without-strange-characters\/', 'Grab a web page without strange characters'],\r\n['https:\/\/pythonprogramming.altervista.org\/grab-the-text-from-a-word-document\/', 'Grab text from Word documents'],\r\n['https:\/\/pythonprogramming.altervista.org\/grab-data-text-from-the-web-with-python-and-urllib\/', 'Grab web text'],\r\n['https:\/\/pythonprogramming.altervista.org\/1563-2\/', 'Html Tables with Python'],\r\n['https:\/\/pythonprogramming.altervista.org\/join-all-images-vertically-or-horizontally\/', 'Join Images'],\r\n['https:\/\/pythonprogramming.altervista.org\/repl-with-sublime-keybinding-to-use-python-interactively\/', 'Keybind Sublime'],\r\n['https:\/\/pythonprogramming.altervista.org\/how-to-get-all-the-file-in-a-directory\/', 'List all files in the directory'],\r\n['https:\/\/pythonprogramming.altervista.org\/all-the-files-in-your-hard-drive-with-os-walk\/', \"List all hard drive's files\"],\r\n['https:\/\/pythonprogramming.altervista.org\/transform-a-png-in-a-thumbnail\/', 'Make a thumbnail (PIL)'],\r\n['https:\/\/pythonprogramming.altervista.org\/a-simple-calculator-with-tkinter\/', 'Mini-Calculator'],\r\n['https:\/\/pythonprogramming.altervista.org\/how-to-merge-all-pdf-files-present-in-a-folder\/', 'Pdf merger'],\r\n['https:\/\/pythonprogramming.altervista.org\/tkinter-a-program-start-mp4-with-ffplay\/', 'Play video with ffplay \/ os'],\r\n['https:\/\/pythonprogramming.altervista.org\/png-to-gif\/', 'Png to Gif (PIL)'],\r\n['https:\/\/pythonprogramming.altervista.org\/using-the-re-module-to-grab-numbers-in-a-text-and-make-different-tests-with-few-code\/', 'Practical example with Regex'],\r\n['https:\/\/pythonprogramming.altervista.org\/python-to-make-svg-easier-for-html-pages\/', 'Python and SVG'],\r\n['https:\/\/pythonprogramming.altervista.org\/make-python-use-your-modules\/', 'Python modules finder'],\r\n['https:\/\/pythonprogramming.altervista.org\/how-to-read-and-write-files-in-python\/', 'Read and write files'],\r\n['https:\/\/pythonprogramming.altervista.org\/rename-all-files-in-a-directory-with-python\/', 'Rename all files'],\r\n['https:\/\/pythonprogramming.altervista.org\/find-all-the-files-on-your-computer\/', 'Search all files of a type'],\r\n['https:\/\/pythonprogramming.altervista.org\/split-square-images-into-many-images-with-python-and-image_slicer\/', 'Split images'],\r\n['https:\/\/pythonprogramming.altervista.org\/split-an-image-and-rename-the-output-images\/', 'Split images'],\r\n['https:\/\/pythonprogramming.altervista.org\/python-inserting-subtitles-to-youtube-videos-on-your-wordpress-site\/', 'Subtitles for Youtube'],\r\n['https:\/\/pythonprogramming.altervista.org\/from-text-to-mp3-with-gtts-reading-external-file\/', 'Text to Mp3 (gtts)'],\r\n['https:\/\/pythonprogramming.altervista.org\/if-you-get-an-error-using-gtts-module\/', 'The gtts error'],\r\n['https:\/\/pythonprogramming.altervista.org\/create-a-true-false-test-with-random-order-of-sentences-with-python\/', 'True false test with Python'],\r\n['https:\/\/pythonprogramming.altervista.org\/unzip-and-unrar-to-extract-zipped-files-with-python-and-7zip\/', 'Unzip and Unrar'],\r\n['https:\/\/pythonprogramming.altervista.org\/use-your-own-module-on-python\/', 'Use your own modules'],\r\n['https:\/\/pythonprogramming.altervista.org\/download-a-video-from-youtube\/', 'Youtube video download']\r\n\t\t];\r\n<\/script>\r\n\r\n\r\n<script>\r\n\t\r\nif (typeof next2 != \"undefined\"){let next2 = 0;}\r\n\t\r\nnext2 = 0;\r\n\thtml = \"\";\/\/<b style='color:coral;font-size:1.2em'>Other posts about \" + title + \"<\/b><br>\";\r\nfor (address of links) \r\n{\r\n\r\n\tif (next2 == 1){\r\n\t\thtml += \"<div style='background:coral'>\";\r\n\t\thtml += \"Next link => <a href='\" + address[0] + \"'>\" + address[1] + \"<\/a>\";\r\n\t\thtml += \"<\/div><br>\";\r\n\t\tnext2 = 0;\r\n\t}\r\n\tif (address[0] == document.URL) {\r\n\t\tnext2 = 1;\r\n\t}\r\n}\r\n\r\nif (typeof next != \"undefined\") {let next = 0;}\r\nif (typeof addressStart != \"undefined\") {let addressStart = \"\";}\r\nnext = 0;\r\naddressStart = \"<a href='\";\r\nfor (address of links) {\r\n\tif (next == 1){\r\n\t\thtml += \">>>\" + addressStart + address[0] + \"'>\" + address[1] + \"<\/a><br>\";\r\n\t\tnext = 0;\r\n\t}\r\n\telse if (addressStart + address[0] != document.URL)\r\n\t{\r\n\t\thtml += addressStart + address[0] + \"'>\" + address[1] + \"<\/a><br>\";\r\n\t}\r\n\telse\r\n\t{\r\n\t\tnext = 1;\r\n\t\tnext_address = address[0]\r\n\t\tnext_title = address[1]\r\n\t\thtml += \"<span style='color:gray'>\" + address[1] + \"<\/span><br>\";\r\n\t}\r\n\r\n}\r\n\r\n\thtml += `<span style=\"font-size:8px\">Powered by <a href=\"https:\/\/pythonprogramming.altervista.org\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2673\" src=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2019\/06\/altervista2.png\" alt=\"\" width=\"70\" height=\"25\" srcset=\"https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2019\/06\/altervista2.png 156w, https:\/\/pythonprogramming.altervista.org\/wp-content\/uploads\/2019\/06\/altervista2-150x56.png 150w\" sizes=\"auto, (max-width: 70px) 100vw, 70px\" \/>pythonprogramming.altervista.org<\/a><\/span>`\r\n\thtml = \"<div style='background:yellow'>\" + html + \"<\/div>\";\r\n\tdocument.write(html)\r\n<\/script>\r\n\r\n\n","protected":false},"excerpt":{"rendered":"What is kahoot Kahoot is a site for quiz that you can make on kahoot.com and play in kahoot.it. To make the quiz \n<a class=\"moretag\" href=\"https:\/\/pythonprogramming.altervista.org\/how-to-make-a-kahoot-fast-with-python\/\"> [...]<\/a>","protected":false},"author":1,"featured_media":1439,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[1,154,275,263],"tags":[287,288,286,282,283,281,284,285,4,103],"class_list":["post-1433","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-examples","category-games","category-test-maker","category-videogames","tag-accounting","tag-business","tag-contabilita","tag-conti-economici","tag-conti-finanziari","tag-kahoot","tag-partita","tag-partita-doppia","tag-python","tag-quiz"],"avopt_banners_inside_post":true,"avopt_banners_on_page":true,"av_copy_from":"","av_sharing_message":"","av_sharing_allowed":false,"av_sharing_on":{"fb":[],"tw":[]},"av_allow_affiliate_banner":false,"av_allow_affiliate_multi_banner":false,"av_show_affiliation_buy_button":false,"av_post_rating":true,"av_have_post_rating_value":false,"av_is_artificial_intelligence_content":false,"_links":{"self":[{"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/posts\/1433","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/comments?post=1433"}],"version-history":[{"count":13,"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/posts\/1433\/revisions"}],"predecessor-version":[{"id":1533,"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/posts\/1433\/revisions\/1533"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/media\/1439"}],"wp:attachment":[{"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/media?parent=1433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/categories?post=1433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pythonprogramming.altervista.org\/wp-json\/wp\/v2\/tags?post=1433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}