{"id":111966,"date":"2025-07-02T17:26:07","date_gmt":"2025-07-02T11:56:07","guid":{"rendered":"https:\/\/www.mygreatlearning.com\/blog\/?page_id=111966"},"modified":"2025-09-12T15:35:34","modified_gmt":"2025-09-12T10:05:34","slug":"national-coding-week-python-quiz","status":"publish","type":"page","link":"https:\/\/www.mygreatlearning.com\/blog\/national-coding-week-python-quiz\/","title":{"rendered":"National Coding Week Python Quiz"},"content":{"rendered":"\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Python Quiz - Test Your Skills<\/title>\n    <style>\n        \/* Scoped styles for the Quiz *\/\n        #pyquiz-app {\n            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;\n            background: #f8fafc; \/* Lighter, cleaner background *\/\n            min-height: 100vh;\n            color: #1e293b; \/* Dark slate for better readability *\/\n            display: flex;\n            align-items: center;\n            justify-content: center;\n            padding: 20px 0 !important;\n        }\n\n        #pyquiz-app * {\n            margin: 0 !important;\n            padding: 0 !important;\n            box-sizing: border-box;\n        }\n\n        #pyquiz-app .pyquiz-container {\n            max-width: 750px; \/* Adjusted width to better match screenshot *\/\n            margin: 0 auto !important;\n            padding: 20px !important;\n            width: 100%;\n        }\n\n        #pyquiz-app .pyquiz-card {\n            background: white;\n            border-radius: 20px;\n            padding: 40px !important; \/* Adjusted padding *\/\n            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);\n            width: 100%;\n            position: relative;\n            overflow: hidden;\n            border: 1px solid #e2e8f0;\n        }\n\n        \/* --- NEW STYLES FOR INTRO SECTION --- *\/\n        #pyquiz-app .pyquiz-header-logos {\n            display: flex;\n            justify-content: space-around;\n            align-items: center;\n            margin-bottom: 30px !important;\n            padding: 0 0px !important;\nmargin-left: -20px !important;\n        }\n\n        #pyquiz-app .pyquiz-header-logos .logo-left {\n            max-height: 120px;\n        }\n\n        #pyquiz-app .pyquiz-header-logos .logo-right {\n            max-height: 50px;\n        }\n\n        #pyquiz-app .pyquiz-header {\n            text-align: center;\n            margin-bottom: 30px !important;\n        }\n\n        #pyquiz-app .pyquiz-header h1 {\n            font-size: 1.4rem !important; \/* Python Quiz title *\/\n            font-weight: 600;\n            color: #475569;\n            margin-bottom: 20px !important;\n        }\n\n        #pyquiz-app .pyquiz-code-icon {\n            display: inline-block;\n            width: 50px;\n            height: 50px;\n            line-height: 50px;\n            border-radius: 50%;\n            background-color: #f1f5f9;\n            color: #334155;\n            font-size: 1.2rem !important;\n            font-weight: 500;\n            margin-bottom: 25px !important;\n        }\n\n        #pyquiz-app .pyquiz-main-heading {\n            font-size: 1.8rem !important;\n            font-weight: 700;\n            color: #1e293b;\n            margin-bottom: 15px !important;\n            line-height: 1.3;\n        }\n\n        #pyquiz-app .pyquiz-sub-heading {\n            font-size: 1.4rem !important;\n            color: #475569;\n            max-width: 650px;\n            margin: 0 auto 30px auto !important;\n            line-height: 1.6;\n        }\n\n        #pyquiz-app .pyquiz-program-banner {\n            width: 100%;\n            display: block;\n            border-radius: 12px;\n            margin-bottom: 30px !important;\n        }\n\n        \/* --- END NEW INTRO STYLES --- *\/\n        #pyquiz-app .pyquiz-rules {\n            margin-bottom: 30px !important;\n            text-align: left;\n            background: #f8fafc;\n            border: 1px solid #e2e8f0;\n            border-radius: 12px; \/* Adjusted border radius *\/\n            padding: 25px !important;\n        }\n\n        #pyquiz-app .pyquiz-rules h2 {\n            font-size: 1.1rem !important;\n            font-weight: 600; \/* Adjusted font weight *\/\n            color: #1e293b;\n            margin-bottom: 15px !important;\n            text-align: left; \/* Aligned to left as per screenshot *\/\n        }\n\n        #pyquiz-app .pyquiz-rules ul {\n            list-style-type: disc;\n            padding-left: 20px !important;\n        }\n\n        #pyquiz-app .pyquiz-rules ul li {\n            font-size: 0.95rem !important;\n            color: #475569;\n            margin-bottom: 10px !important;\n            line-height: 1.6;\n        }\n\n        #pyquiz-app .pyquiz-rules ul li:last-child {\n            margin-bottom: 0 !important;\n        }\n\n.orange-text{\n  color: bf5700;\n}\n        #pyquiz-app .pyquiz-form-group {\n            margin-bottom: 20px !important; \/* Adjusted margin *\/\n        }\n\n        #pyquiz-app .pyquiz-form-group label {\n            display: block;\n            margin-bottom: 8px !important;\n            font-weight: 500; \/* Adjusted font weight *\/\n            color: #334155;\n            font-size: 0.95rem !important;\n        }\n\n        #pyquiz-app .pyquiz-form-group input,\n        #pyquiz-app .pyquiz-form-group select {\n            width: 100%;\n            border: 1px solid #cbd5e1; \/* Adjusted border *\/\n            border-radius: 8px;\n            font-size: 1rem !important;\n            height: 48px;\n            transition: all 0.3s ease;\n            background: #ffffff;\n            padding: 0 15px !important;\n        }\n\n        #pyquiz-app .pyquiz-form-group input::placeholder {\n            color: #94a3b8;\n        }\n\n        #pyquiz-app .pyquiz-form-group input:focus,\n        #pyquiz-app .pyquiz-form-group select:focus {\n            outline: none;\n            border-color: #4f46e5;\n            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);\n        }\n\n        #pyquiz-app .pyquiz-btn {\n            background: #4f46e5;\n            color: white;\n            border: none;\n            padding: 16px 32px !important;\n            border-radius: 8px; \/* Matched button border radius from screenshot *\/\n            font-size: 1rem !important;\n            font-weight: 600;\n            cursor: pointer;\n            transition: all 0.3s ease;\n            width: 100%;\n            text-transform: uppercase;\n            letter-spacing: 0.5px;\n            text-decoration: none;\n            display: inline-block;\n            text-align: center;\n        }\n\n        #pyquiz-app .pyquiz-btn:hover {\n            transform: translateY(-2px);\n            background: #4338ca;\n            box-shadow: 0 10px 20px rgba(79, 70, 229, 0.25);\n        }\n\n        #pyquiz-app .pyquiz-btn:disabled {\n            background: #cccccc;\n            color: #666666;\n            cursor: not-allowed;\n            transform: none;\n            box-shadow: none;\n        }\n\n        \/* Styles for Quiz Screen *\/\n        #pyquiz-app .pyquiz-quiz-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px !important; padding: 20px !important; background: #f8fafc; border-radius: 15px; border: 1px solid #e2e8f0; }\n        #pyquiz-app .pyquiz-timer { font-size: 1.5rem !important; font-weight: 700; color: #4f46e5; display: flex; align-items: center; gap: 10px; }\n        #pyquiz-app .pyquiz-question-progress { font-size: 1.1rem !important; color: #475569; font-weight: 600; }\n        #pyquiz-app .pyquiz-question-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 15px; padding: 30px !important; margin-bottom: 30px !important; }\n        #pyquiz-app .pyquiz-question-title { font-size: 1.3rem !important; font-weight: 600; color: #1e293b; margin-bottom: 25px !important; line-height: 1.6; }\n        #pyquiz-app .pyquiz-options { display: grid; gap: 15px; }\n        #pyquiz-app .pyquiz-option { background: white; border: 2px solid #e2e8f0; border-radius: 10px; padding: 15px 20px !important; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 12px; }\n        #pyquiz-app .pyquiz-option:hover { border-color: #6366f1; background: #f0f0ff; }\n        #pyquiz-app .pyquiz-option.selected { border-color: #4f46e5; background: #eef2ff; }\n        #pyquiz-app .pyquiz-option-letter { width: 30px; height: 30px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; font-weight: 600; color: #475569; font-size: 0.9rem !important; flex-shrink: 0; }\n        #pyquiz-app .pyquiz-option.selected .pyquiz-option-letter { background: #4f46e5; color: white; }\n        #pyquiz-app .pyquiz-navigation { display: flex; justify-content: center; gap: 15px; margin-top: 30px !important; }\n        \n        \/* --- START: UPDATED STYLES FOR RESULTS SCREEN --- *\/\n        #pyquiz-app .pyquiz-results-content { text-align: center; }\n        #pyquiz-app #pyquiz-results h1 { font-size: 1.8rem !important; font-weight: 600; color: #334155; margin-bottom: 15px !important; }\n        #pyquiz-app #pyquiz-results .score { font-size: 4rem !important; font-weight: 800; color: #4f46e5; line-height: 1; }\n        #pyquiz-app #pyquiz-results .time-taken { font-size: 0.9rem !important; color: #64748b; margin-top: 8px !important; margin-bottom: 12px !important; }\n        #pyquiz-app #pyquiz-results .message { font-size: 1.1rem !important; font-weight: 500; color: #475569; margin-bottom: 35px !important; }\n        \n        #pyquiz-app .pyquiz-program-cta { text-align: center; margin-top: 30px !important; }\n        #pyquiz-app .pyquiz-program-cta h2 { font-size: 1.6rem !important; font-weight: 700; color: #1e293b; margin-bottom: 15px !important; line-height: 1.3; }\n        #pyquiz-app .pyquiz-program-cta .cta-subtitle { font-size: 1.1rem !important; color: #475569; line-height: 1.6; margin-bottom: 25px !important; }\n\n        #pyquiz-app .pyquiz-program-image {\n            width: 100%;\n            margin: 0 auto 30px auto !important;\n            border-radius: 15px;\n            display: block;\n            border: 1px solid #e2e8f0;\n        }\n\n        #pyquiz-app .pyquiz-scholarship-box {\n            background: #fffbe6;\n            border: 1px solid #fde68a;\n            color: #92400e;\n            padding: 15px 20px !important;\n            border-radius: 12px;\n            font-weight: 600;\n            text-align: center;\n            margin: 0 auto 30px auto !important;\n            max-width: 550px;\n            font-size: 1rem !important;\n            line-height: 1.5;\n        }\n\n        #pyquiz-app .pyquiz-program-cta .cta-more-info { font-size: 1rem !important; font-weight: 500; color: #334155; margin-bottom: 15px !important; }\n        \n        #pyquiz-app .pyquiz-info-links {\n            display: flex;\n            justify-content: center;\n            gap: 15px;\n            margin: 0 auto 30px auto !important;\n            flex-wrap: wrap;\n        }\n        \n        #pyquiz-app .pyquiz-info-links a {\n            background: #f1f5f9;\n            color: #334155;\n            padding: 12px 20px !important;\n            border-radius: 10px;\n            text-decoration: none;\n            font-weight: 600;\n            font-size: 1.2rem !important;\n            transition: background 0.2s;\n            border: 1px solid #e2e8f0;\n        }\n\n        #pyquiz-app .pyquiz-info-links a:hover {\n            background: #e2e8f0;\n        }\n\n        #pyquiz-app .pyquiz-share-actions {\n            display: flex;\n            justify-content: center;\n            gap: 15px;\n            flex-wrap: wrap;\n            margin-top: 20px !important;\n        }\n\n        #pyquiz-app .pyquiz-share-btn {\n            border: none;\n            padding: 12px 25px !important;\n            border-radius: 8px;\n            font-weight: 600;\n            font-size: 0.9rem !important;\n            cursor: pointer;\n            text-transform: uppercase;\n            letter-spacing: 0.5px;\n            flex-grow: 1;\n            max-width: 220px;\n            transition: transform 0.2s, box-shadow 0.2s;\n        }\n        #pyquiz-app .pyquiz-share-btn:hover {\n            transform: translateY(-2px);\n            box-shadow: 0 4px 10px rgba(0,0,0,0.1);\n        }\n\n        #pyquiz-app .pyquiz-linkedin-btn {\n            background: #f1f5f9;\n            color: #475569;\n            border: 1px solid #e2e8f0;\n        }\n\n        #pyquiz-app .pyquiz-whatsapp-btn {\n            background: #25d366;\n            color: white;\n        }\n        \/* --- END: UPDATED STYLES FOR RESULTS SCREEN --- *\/\n\n        #pyquiz-app .pyquiz-hidden { display: none !important; }\n\n        @media (max-width: 390px) {\n            #pyquiz-app { padding: 0 !important; }\n            #pyquiz-app .pyquiz-container { padding: 0 !important; }\n            #pyquiz-app .pyquiz-card {\n                padding: 30px 20px !important;\n                border-radius: 0 !important;\n                border: none;\n                box-shadow: none;\n            }\n            #pyquiz-app .pyquiz-header-logos { flex-direction: column; gap: 20px; }\n            #pyquiz-app .pyquiz-main-heading { font-size: 1.5rem !important; }\n            #pyquiz-app #pyquiz-results h1 { font-size: 1.6rem !important; }\n            #pyquiz-app #pyquiz-results .score { font-size: 3.5rem !important; }\n            #pyquiz-app #pyquiz-results .message { font-size: 1rem !important; }\n            #pyquiz-app .pyquiz-program-cta h2 { font-size: 1.4rem !important; }\n            #pyquiz-app .pyquiz-info-links { flex-direction: column; align-items: center; }\n        }\n    <\/style>\n<\/head>\n<body>\n    <div id=\"pyquiz-app\">\n        <div class=\"pyquiz-container\">\n            <div id=\"pyquiz-registration\" class=\"pyquiz-card\">\n                <div class=\"pyquiz-header-logos\">\n                    <img decoding=\"async\" src=\"http:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/09\/unnamed.webp\" alt=\"National Coding Week Logo\" class=\"logo-left\">\n                    <img decoding=\"async\" src=\"https:\/\/d1vwxdpzbgdqj.cloudfront.net\/s3-public-images\/learning-partners\/greatlearning-brand.svg\" alt=\"Great Learning Logo\" class=\"logo-right\">\n                <\/div>\n<div class=\"pyquiz-header\">\n    <p class=\"pyquiz-sub-heading\">\n        Take this Python quiz and stand a chance to win exciting scholarships for the <span style=\"color: #bf5700;\">PG Program in Artificial Intelligence and Machine Learning, offered by The McCombs School of Business at The University of Texas at Austin.<\/span>\n    <\/p>\n<\/div>\n                <form id=\"pyquiz-registrationForm\">\n                    <div class=\"pyquiz-form-group\">\n                        <label for=\"pyquiz-name\">Name<\/label>\n                        <input type=\"text\" id=\"pyquiz-name\" name=\"name\" placeholder=\"Enter your full name\" required>\n                    <\/div>\n                    <div class=\"pyquiz-form-group\">\n                        <label for=\"pyquiz-email\">Email Address<\/label>\n                        <input type=\"email\" id=\"pyquiz-email\" name=\"email\" placeholder=\"Enter your email address\" required>\n                    <\/div>\n                    <div class=\"pyquiz-form-group\">\n                        <label for=\"pyquiz-mobile\">Phone Number<\/label>\n<input type=\"tel\" id=\"pyquiz-mobile\" name=\"mobile\" \n    placeholder=\"Enter your mobile number\" \n    pattern=\"[0-9]{7,13}\" required>\n                    <\/div>\n                    <div class=\"pyquiz-form-group\">\n                        <label for=\"pyquiz-country\">Country<\/label>\n                        <input type=\"text\" id=\"pyquiz-country\" name=\"country\" placeholder=\"Enter your country\" required>\n                    <\/div>\n                    <button type=\"submit\" id=\"pyquiz-startBtn\" class=\"pyquiz-btn\">Start Quiz<\/button>\n                <\/form>\n            <\/div>\n\n            <div id=\"pyquiz-quiz\" class=\"pyquiz-card pyquiz-hidden\">\n                <div class=\"pyquiz-quiz-header\">\n                    <div class=\"pyquiz-question-progress\">Question <span id=\"pyquiz-currentQuestion\">1<\/span> of <span id=\"pyquiz-totalQuestions\">10<\/span><\/div>\n                    <div class=\"pyquiz-timer\">\u23f1\ufe0f <span id=\"pyquiz-timer-display\">00:00<\/span><\/div>\n                <\/div>\n                <div class=\"pyquiz-question-card\">\n                    <div class=\"pyquiz-question-title\" id=\"pyquiz-questionTitle\"><\/div>\n                    <div class=\"pyquiz-options\" id=\"pyquiz-options\"><\/div>\n                <\/div>\n                <div class=\"pyquiz-navigation\">\n                    <button id=\"pyquiz-nextBtn\" class=\"pyquiz-btn\">Next Question<\/button>\n                <\/div>\n            <\/div>\n\n            <div id=\"pyquiz-results\" class=\"pyquiz-card pyquiz-hidden\">\n                <div class=\"pyquiz-results-content\">\n                    <h1 id=\"quiz-completed\">Quiz Completed!<\/h1>\n                    <div class=\"pyquiz-score-summary\">\n                        <div class=\"score\" id=\"pyquiz-finalScoreDisplay\"><\/div>\n                        <p class=\"time-taken\">Time Taken: <span id=\"pyquiz-timeTakenDisplay\"><\/span><\/p>\n                        <p class=\"message\" id=\"pyquiz-scoreFeedback\"><\/p>\n                    <\/div>\n\n   <div class=\"pyquiz-program-cta\">\n                        \n                        \n                        \n                        \n                        \n                        <div class=\"pyquiz-scholarship-box\">\n                        Enroll in our PG Program in Artificial Intelligence and Machine Learning and get scholarships up to \u20b925,000!\n                        <\/div>\n\n                        <div class=\"pyquiz-info-links\">\n                            <a href=\"https:\/\/www.mygreatlearning.com\/schedule-a-call?id=%7B%7Buser%5B%27system%27%5D%5B%27cuid%27%5D%7D%7D&utm_source=brand_mktg&utm_medium=NAinstagram&utm_campaign=NCW_AIML\" target=\"_blank\" rel=\"noopener\">\ud83d\udc49 Connect with a learning consultant<\/a>\n                            <a href=\"https:\/\/www.mygreatlearning.com\/pg-program-artificial-intelligence-course?utm_source=brand_mktg&utm_medium=NAInstagram&utm_campaign=AIML_NCW_Quiz\" target=\"_blank\" rel=\"noopener\">\ud83d\udc49 Know more about the program<\/a>\n                        <\/div>\n                    <\/div>\n                    \n                    <div class=\"pyquiz-share-actions\">\n                        <button id=\"pyquiz-linkedinBtn\" class=\"pyquiz-share-btn pyquiz-linkedin-btn\">Share on LinkedIn<\/button>\n                        <button id=\"pyquiz-whatsappBtn\" class=\"pyquiz-share-btn pyquiz-whatsapp-btn\">Share on WhatsApp<\/button>\n                    <\/div>\n                <\/div>\n            <\/div>\n            <\/div>\n    <\/div>\n\n    <script>\n        \/\/ --- START: CONFIGURATION FOR DIRECT GOOGLE FORM SUBMISSION (UPDATED) ---\n        const GOOGLE_FORM_ACTION_URL = 'https:\/\/docs.google.com\/forms\/d\/e\/1FAIpQLSdqYLN70n0Autj6Wf9ngoq55qig8a2TGwv5aIlCQHxsmz3ORQ\/formResponse';\n        const NAME_ENTRY_ID = 'entry.2004937598';\n        const EMAIL_ENTRY_ID = 'entry.653153760';\n        const MOBILE_ENTRY_ID = 'entry.1902159505';\n        const COUNTRY_ENTRY_ID = 'entry.1841339458';\n        const SCORE_ENTRY_ID = 'entry.1560686832';\n        const TIME_TAKEN_ENTRY_ID = 'entry.1736049770';\n        \/\/ --- END: CONFIGURATION ---\n        \n        const quizData = [\n            { question: \"Q1. What is the correct file extension for Python files?\", options: [\".py\", \".pt\", \".pyt\", \".txt\"], correct: 0 },\n            { question: \"Q2. Who created Python?\", options: [\"Bill Gates\", \"Guido van Rossum\", \"Elon Musk\", \"Mark Zuckerberg\"], correct: 1 },\n            { question: \"Q3. Which animal is Python named after?\", options: [\"Snake\", \"Lion\", \"Comedy group \u201cMonty Python\u201d\", \"Dragon\"], correct: 2 },\n            { question: \"Q4. Which keyword is used for decisions in Python?\", options: [\"if\", \"decide\", \"check\", \"choose\"], correct: 0 },\n            { question: \"Q5. What does == mean in Python?\", options: [\"Equal to\", \"Assignment\", \"Plus\", \"Minus\"], correct: 0 },\n            { question: \"Q6. Which operator is used for multiplication?\", options: [\"*\", \"x\", \"\u00d7\", \"#\"], correct: 0 },\n            { question: \"Q7. Which operator is used for division?\", options: [\"\/\", \"\\\\\", \"%\", \"\u00f7\"], correct: 0 },\n            { question: \"Q8. Which function asks the user for input?\", options: [\"scan()\", \"input()\", \"read()\", \"get()\"], correct: 1 },\n            { question: \"Q9. Which of these is NOT a Python data type?\", options: [\"int\", \"str\", \"digit\", \"bool\"], correct: 2 },\n            { question: \"Q10. What is Python mostly used for?\", options: [\"Web development, data analysis, and AI\", \"Only making mobile apps\", \"Only creating operating systems\", \"Only video game design\"], correct: 0 }\n        ];\n\n        let currentQuestionIndex = 0;\n        let userAnswers = [];\n        let startTime = null;\n        let timerInterval = null;\n\n        const registrationSection = document.getElementById(\"pyquiz-registration\");\n        const quizSection = document.getElementById(\"pyquiz-quiz\");\n        const resultsSection = document.getElementById(\"pyquiz-results\");\n        const registrationForm = document.getElementById(\"pyquiz-registrationForm\");\n        const timerDisplay = document.getElementById(\"pyquiz-timer-display\");\n        const currentQuestionSpan = document.getElementById(\"pyquiz-currentQuestion\");\n        const totalQuestionsSpan = document.getElementById(\"pyquiz-totalQuestions\");\n        const questionTitle = document.getElementById(\"pyquiz-questionTitle\");\n        const optionsContainer = document.getElementById(\"pyquiz-options\");\n        const nextBtn = document.getElementById(\"pyquiz-nextBtn\");\n\n        const finalScoreDisplay = document.getElementById(\"pyquiz-finalScoreDisplay\");\n        const scoreFeedback = document.getElementById(\"pyquiz-scoreFeedback\");\n        const timeTakenDisplay = document.getElementById(\"pyquiz-timeTakenDisplay\");\n        const linkedinBtn = document.getElementById(\"pyquiz-linkedinBtn\");\n        const whatsappBtn = document.getElementById(\"pyquiz-whatsappBtn\");\n\n        totalQuestionsSpan.textContent = quizData.length;\n\n        async function fetchUserLocation() {\n            try {\n                const response = await fetch('https:\/\/ipapi.co\/json\/');\n                if (!response.ok) throw new Error('Network response was not ok');\n                const data = await response.json();\n                return data.country_name || 'Unknown';\n            } catch (error) {\n                console.error(\"Failed to fetch location:\", error);\n                return 'Unknown';\n            }\n        }\n\n        registrationForm.addEventListener(\"submit\", async function (event) {\n            event.preventDefault();\n            const startBtn = document.getElementById('pyquiz-startBtn');\n            startBtn.disabled = true;\n            startBtn.textContent = 'Starting Quiz...';\n            const countryInput = document.getElementById(\"pyquiz-country\");\n            if (!countryInput.value) { \n                fetchUserLocation().then(country => {\n                    if (country !== 'Unknown') {\n                        countryInput.value = country;\n                    }\n                });\n            }\n            setTimeout(() => {\n                const userData = {\n                    name: document.getElementById(\"pyquiz-name\").value,\n                    email: document.getElementById(\"pyquiz-email\").value,\n                    mobile: document.getElementById(\"pyquiz-mobile\").value,\n                    country: countryInput.value\n                };\n                sessionStorage.setItem('pyquiz-userdata', JSON.stringify(userData));\n                registrationSection.classList.add(\"pyquiz-hidden\");\n                quizSection.classList.remove(\"pyquiz-hidden\");\n                startQuiz();\n            }, 300);\n        });\n\n        function startQuiz() {\n            startTime = new Date();\n            userAnswers = new Array(quizData.length).fill(null);\n            currentQuestionIndex = 0;\n            timerInterval = setInterval(updateTimer, 1000);\n            displayQuestion();\n        }\n\n        function updateTimer() {\n            const now = new Date();\n            const elapsed = now - startTime;\n            const minutes = Math.floor(elapsed \/ 60000);\n            const seconds = Math.floor((elapsed % 60000) \/ 1000);\n            timerDisplay.textContent = `${minutes.toString().padStart(2, \"0\")}:${seconds.toString().padStart(2, \"0\")}`;\n        }\n\n        function displayQuestion() {\n            const currentQ = quizData[currentQuestionIndex];\n            currentQuestionSpan.textContent = currentQuestionIndex + 1;\n            questionTitle.textContent = currentQ.question;\n            optionsContainer.innerHTML = \"\";\n            currentQ.options.forEach((optionText, index) => {\n                const optionDiv = document.createElement(\"div\");\n                optionDiv.className = \"pyquiz-option\";\n                optionDiv.innerHTML = `<div class=\"pyquiz-option-letter\">${String.fromCharCode(65 + index)}<\/div><span>${optionText}<\/span>`;\n                if (userAnswers[currentQuestionIndex] === index) { optionDiv.classList.add(\"selected\"); }\n                optionDiv.addEventListener(\"click\", () => selectOption(index, optionDiv));\n                optionsContainer.appendChild(optionDiv);\n            });\n            nextBtn.disabled = userAnswers[currentQuestionIndex] === null;\n            nextBtn.textContent = currentQuestionIndex === quizData.length - 1 ? \"Finish Quiz\" : \"Next Question\";\n        }\n\n        function selectOption(optionIndex, optionElement) {\n            document.querySelectorAll(\"#pyquiz-app .pyquiz-option\").forEach(el => el.classList.remove(\"selected\"));\n            optionElement.classList.add(\"selected\");\n            userAnswers[currentQuestionIndex] = optionIndex;\n            nextBtn.disabled = false;\n        }\n\n        nextBtn.addEventListener(\"click\", () => {\n            if (userAnswers[currentQuestionIndex] !== null) {\n                if (currentQuestionIndex < quizData.length - 1) {\n                    currentQuestionIndex++;\n                    displayQuestion();\n                } else {\n                    finishQuiz();\n                }\n            }\n        });\n\n        function finishQuiz() {\n            clearInterval(timerInterval);\n            const endTime = new Date();\n            const timeTakenMs = endTime - startTime;\n            const storedUserData = JSON.parse(sessionStorage.getItem('pyquiz-userdata')) || {};\n            let score = 0;\n            userAnswers.forEach((answer, index) => { if (answer === quizData[index].correct) { score++; } });\n            const minutes = Math.floor(timeTakenMs \/ 60000);\n            const seconds = Math.floor((timeTakenMs % 60000) \/ 1000);\n            const formattedTimeForSubmission = `${minutes}m ${seconds}s`;\n            const formattedScoreForSubmission = `${score}\/${quizData.length}`;\n            const finalSubmissionData = {\n                ...storedUserData,\n                timeTaken: formattedTimeForSubmission,\n                score: formattedScoreForSubmission\n            };\n            submitToGoogleForm(finalSubmissionData);\n            displayResults(score, timeTakenMs);\n        }\n\n        async function submitToGoogleForm(data) {\n            const fieldMapping = {\n                name: NAME_ENTRY_ID, email: EMAIL_ENTRY_ID, mobile: MOBILE_ENTRY_ID,\n                country: COUNTRY_ENTRY_ID, score: SCORE_ENTRY_ID, timeTaken: TIME_TAKEN_ENTRY_ID\n            };\n            const formData = new FormData();\n            for (const key in data) {\n                if (fieldMapping[key] && data[key]) {\n                    formData.append(fieldMapping[key], data[key]);\n                }\n            }\n            try {\n                await fetch(GOOGLE_FORM_ACTION_URL, { method: 'POST', body: formData, mode: 'no-cors' });\n            } catch (error) {\n                console.error('Error during form submission:', error);\n            }\n        }\n\n        function displayResults(correctAnswers, timeTakenMs) {\n            quizSection.classList.add(\"pyquiz-hidden\");\n            resultsSection.classList.remove(\"pyquiz-hidden\");\n            const totalQuestions = quizData.length;\n            finalScoreDisplay.textContent = `${correctAnswers}\/${totalQuestions}`;\n            let feedbackMessage = \"\";\n            const scorePercentage = (correctAnswers \/ totalQuestions) * 100;\n            if (scorePercentage >= 80) {\n                feedbackMessage = \"Excellent work! You're a code wizard.\";\n            } else if (scorePercentage >= 50) {\n                feedbackMessage = \"Good job! You're on your way to mastery.\";\n            } else {\n                feedbackMessage = \"Nice try! Keep learning and growing.\";\n            }\n            scoreFeedback.textContent = feedbackMessage;\n            const minutes = Math.floor(timeTakenMs \/ 60000);\n            const seconds = Math.floor((timeTakenMs % 60000) \/ 1000);\n            timeTakenDisplay.textContent = `${minutes}m ${seconds}s`;\n        }\n        \n        linkedinBtn.addEventListener(\"click\", () => {\n            const quizUrl = window.location.href; \n            const scoreText = finalScoreDisplay.textContent; \n            const linkedInPostText = `I scored ${scoreText} on the Python Quiz by Great Learning! \ud83d\ude80\\n\\n Try it here and stand a chance to win scholarships up to \u20b925,000:\\n\\n${quizUrl}\\n\\n#Python #PythonQuiz #GreatLearning #CodingChallenge #DataScience`;\n            const linkedInUrl = `https:\/\/www.linkedin.com\/feed\/?shareActive=true&text=${encodeURIComponent(linkedInPostText)}`;\n            window.open(linkedInUrl, \"_blank\");\n        });\n\n        whatsappBtn.addEventListener(\"click\", () => {\n            const score = finalScoreDisplay.textContent;\n            const quizUrl = window.location.href;\n            const shareText = `I scored ${score} on the Python Quiz by Great Learning! Try it here and win scholarships up to \u20b925,000: ${quizUrl}`;\n            const whatsappUrl = `https:\/\/api.whatsapp.com\/send?text=${encodeURIComponent(shareText)}`;\n            window.open(whatsappUrl, \"_blank\");\n        });\n    <\/script>\n<\/body>\n<\/html>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python Quiz - Test Your Skills Take this Python quiz and stand a chance to win exciting scholarships for the PG Program in Artificial Intelligence and Machine Learning, offered by The McCombs School of Business at The University of Texas at Austin. Name Email Address Phone Number Country Start Quiz Question 1 of 10 \u23f1\ufe0f [&hellip;]<\/p>\n","protected":false},"author":41,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_uag_custom_page_level_css":".ast-custom-footer {\n    display: none !important;\n    visibility: hidden !important;\n    opacity: 0 !important;\n    background-color: transparent !important;\n    color: transparent !important;\n    height: 0 !important;\n    width: 0 !important;\n    padding: 0 !important;\n}\n\n.ast-single-post.ast-page-builder-template .site-main > article, .woocommerce.ast-page-builder-template .site-main{padding: 0px !important}","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"full-width-container","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"disabled","ast-banner-title-visibility":"disabled","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"disabled","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[],"tags":[],"class_list":["post-111966","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>National Coding Week Python Quiz<\/title>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"National Coding Week Python Quiz\" \/>\n<meta property=\"og:description\" content=\"Python Quiz - Test Your Skills Take this Python quiz and stand a chance to win exciting scholarships for the PG Program in Artificial Intelligence and Machine Learning, offered by The McCombs School of Business at The University of Texas at Austin. Name Email Address Phone Number Country Start Quiz Question 1 of 10 \u23f1\ufe0f [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mygreatlearning.com\/blog\/python-quiz\/\" \/>\n<meta property=\"og:site_name\" content=\"Great Learning Blog: Free Resources what Matters to shape your Career!\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/GreatLearningOfficial\/\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/09\/unnamed.webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@Great_Learning\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python-quiz\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/national-coding-week-python-quiz\\\/\"},\"author\":{\"name\":\"Great Learning Editorial Team\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/person\\\/6f993d1be4c584a335951e836f2656ad\"},\"headline\":\"National Coding Week Python Quiz\",\"datePublished\":\"2025-07-02T11:56:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/national-coding-week-python-quiz\\\/\"},\"wordCount\":95,\"publisher\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python-quiz\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/unnamed.webp\",\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/national-coding-week-python-quiz\\\/\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python-quiz\\\/\",\"name\":\"National Coding Week Python Quiz\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python-quiz\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python-quiz\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/unnamed.webp\",\"datePublished\":\"2025-07-02T11:56:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python-quiz\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python-quiz\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python-quiz\\\/#primaryimage\",\"url\":\"http:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/unnamed.webp\",\"contentUrl\":\"http:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/unnamed.webp\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python-quiz\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"National Coding Week Python Quiz\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\",\"name\":\"Great Learning Blog\",\"description\":\"Learn, Upskill &amp; Career Development Guide and Resources\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\"},\"alternateName\":\"Great Learning\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\",\"name\":\"Great Learning\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/GL-Logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/GL-Logo.jpg\",\"width\":900,\"height\":900,\"caption\":\"Great Learning\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/GreatLearningOfficial\\\/\",\"https:\\\/\\\/x.com\\\/Great_Learning\",\"https:\\\/\\\/www.instagram.com\\\/greatlearningofficial\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/school\\\/great-learning\\\/\",\"https:\\\/\\\/in.pinterest.com\\\/greatlearning12\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/beaconelearning\\\/\"],\"description\":\"Great Learning is a leading global ed-tech company for professional training and higher education. It offers comprehensive, industry-relevant, hands-on learning programs across various business, technology, and interdisciplinary domains driving the digital economy. These programs are developed and offered in collaboration with the world's foremost academic institutions.\",\"email\":\"info@mygreatlearning.com\",\"legalName\":\"Great Learning Education Services Pvt. Ltd\",\"foundingDate\":\"2013-11-29\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"1001\",\"maxValue\":\"5000\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/person\\\/6f993d1be4c584a335951e836f2656ad\",\"name\":\"Great Learning Editorial Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"caption\":\"Great Learning Editorial Team\"},\"description\":\"The Great Learning Editorial Staff includes a dynamic team of subject matter experts, instructors, and education professionals who combine their deep industry knowledge with innovative teaching methods. Their mission is to provide learners with the skills and insights needed to excel in their careers, whether through upskilling, reskilling, or transitioning into new fields.\",\"sameAs\":[\"https:\\\/\\\/www.mygreatlearning.com\\\/\",\"https:\\\/\\\/in.linkedin.com\\\/school\\\/great-learning\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/Great_Learning\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCObs0kLIrDjX2LLSybqNaEA\"],\"award\":[\"Best EdTech Company of the Year 2024\",\"Education Economictimes Outstanding Education\\\/Edtech Solution Provider of the Year 2024\",\"Leading E-learning Platform 2024\"],\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/author\\\/greatlearning\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"National Coding Week Python Quiz","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_US","og_type":"article","og_title":"National Coding Week Python Quiz","og_description":"Python Quiz - Test Your Skills Take this Python quiz and stand a chance to win exciting scholarships for the PG Program in Artificial Intelligence and Machine Learning, offered by The McCombs School of Business at The University of Texas at Austin. Name Email Address Phone Number Country Start Quiz Question 1 of 10 \u23f1\ufe0f [&hellip;]","og_url":"https:\/\/www.mygreatlearning.com\/blog\/python-quiz\/","og_site_name":"Great Learning Blog: Free Resources what Matters to shape your Career!","article_publisher":"https:\/\/www.facebook.com\/GreatLearningOfficial\/","og_image":[{"url":"http:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/09\/unnamed.webp","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_site":"@Great_Learning","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.mygreatlearning.com\/blog\/python-quiz\/#article","isPartOf":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/national-coding-week-python-quiz\/"},"author":{"name":"Great Learning Editorial Team","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/person\/6f993d1be4c584a335951e836f2656ad"},"headline":"National Coding Week Python Quiz","datePublished":"2025-07-02T11:56:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/national-coding-week-python-quiz\/"},"wordCount":95,"publisher":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/python-quiz\/#primaryimage"},"thumbnailUrl":"http:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/09\/unnamed.webp","inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.mygreatlearning.com\/blog\/national-coding-week-python-quiz\/","url":"https:\/\/www.mygreatlearning.com\/blog\/python-quiz\/","name":"National Coding Week Python Quiz","isPartOf":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/python-quiz\/#primaryimage"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/python-quiz\/#primaryimage"},"thumbnailUrl":"http:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/09\/unnamed.webp","datePublished":"2025-07-02T11:56:07+00:00","breadcrumb":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/python-quiz\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mygreatlearning.com\/blog\/python-quiz\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/python-quiz\/#primaryimage","url":"http:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/09\/unnamed.webp","contentUrl":"http:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/09\/unnamed.webp"},{"@type":"BreadcrumbList","@id":"https:\/\/www.mygreatlearning.com\/blog\/python-quiz\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/www.mygreatlearning.com\/blog\/"},{"@type":"ListItem","position":2,"name":"National Coding Week Python Quiz"}]},{"@type":"WebSite","@id":"https:\/\/www.mygreatlearning.com\/blog\/#website","url":"https:\/\/www.mygreatlearning.com\/blog\/","name":"Great Learning Blog","description":"Learn, Upskill &amp; Career Development Guide and Resources","publisher":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization"},"alternateName":"Great Learning","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mygreatlearning.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization","name":"Great Learning","url":"https:\/\/www.mygreatlearning.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/GL-Logo.jpg","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/GL-Logo.jpg","width":900,"height":900,"caption":"Great Learning"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/GreatLearningOfficial\/","https:\/\/x.com\/Great_Learning","https:\/\/www.instagram.com\/greatlearningofficial\/","https:\/\/www.linkedin.com\/school\/great-learning\/","https:\/\/in.pinterest.com\/greatlearning12\/","https:\/\/www.youtube.com\/user\/beaconelearning\/"],"description":"Great Learning is a leading global ed-tech company for professional training and higher education. It offers comprehensive, industry-relevant, hands-on learning programs across various business, technology, and interdisciplinary domains driving the digital economy. These programs are developed and offered in collaboration with the world's foremost academic institutions.","email":"info@mygreatlearning.com","legalName":"Great Learning Education Services Pvt. Ltd","foundingDate":"2013-11-29","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"1001","maxValue":"5000"}},{"@type":"Person","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/person\/6f993d1be4c584a335951e836f2656ad","name":"Great Learning Editorial Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","caption":"Great Learning Editorial Team"},"description":"The Great Learning Editorial Staff includes a dynamic team of subject matter experts, instructors, and education professionals who combine their deep industry knowledge with innovative teaching methods. Their mission is to provide learners with the skills and insights needed to excel in their careers, whether through upskilling, reskilling, or transitioning into new fields.","sameAs":["https:\/\/www.mygreatlearning.com\/","https:\/\/in.linkedin.com\/school\/great-learning\/","https:\/\/x.com\/https:\/\/twitter.com\/Great_Learning","https:\/\/www.youtube.com\/channel\/UCObs0kLIrDjX2LLSybqNaEA"],"award":["Best EdTech Company of the Year 2024","Education Economictimes Outstanding Education\/Edtech Solution Provider of the Year 2024","Leading E-learning Platform 2024"],"url":"https:\/\/www.mygreatlearning.com\/blog\/author\/greatlearning\/"}]}},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"web-stories-poster-portrait":false,"web-stories-publisher-logo":false,"web-stories-thumbnail":false},"uagb_author_info":{"display_name":"Great Learning Editorial Team","author_link":"https:\/\/www.mygreatlearning.com\/blog\/author\/greatlearning\/"},"uagb_comment_info":0,"uagb_excerpt":"Python Quiz - Test Your Skills Take this Python quiz and stand a chance to win exciting scholarships for the PG Program in Artificial Intelligence and Machine Learning, offered by The McCombs School of Business at The University of Texas at Austin. Name Email Address Phone Number Country Start Quiz Question 1 of 10 \u23f1\ufe0f&hellip;","_links":{"self":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/pages\/111966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/comments?post=111966"}],"version-history":[{"count":19,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/pages\/111966\/revisions"}],"predecessor-version":[{"id":111989,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/pages\/111966\/revisions\/111989"}],"wp:attachment":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/media?parent=111966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/categories?post=111966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/tags?post=111966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}