CBSE 2026 results are out, Mukul scored a perfect 100/100 in Computer ScienceSee all toppers →

KwickClips Python

Python: 204 short revision clips

One idea per clip, with the answer written out underneath. Each clip links back to the full Python lesson it came from.

Python operator examples showing 2 ** 3 ** 2 as 512, floor division and the remainder.What is 2 ** 3 ** 2?43 secA while loop reversing 1234 into 4321 using % 10 and // 10.How do you get the last digit of a number?40 secA table of str, tuple, list and dict with their brackets and whether each is mutable.Which two collections are mutable?45 secTwo lists, one after append with a nested list and one after extend with separate items.What does append do with a list argument?39 secA three-row quiz table with answers 6, 'WI' and TypeError.What is 7 // 2 * 2?44 secThree points: readable almost like English, libraries of ready-made code, used widely in AI and data.Why is Python easy for beginners?40 secSetup steps: download from python.org, say yes to PATH, pip install notebook.Does IDLE need a separate install?42 secTable comparing interactive mode (one line, not saved) and script mode (whole file, .py).Why did my Shell code vanish?39 secPython code name = "Asha" and print("Hello,", name) with output Hello, Asha.Which key runs a script in IDLE?43 secPython code marks = 80 with a comment, if marks >= 33: and an indented print("Pass").What does Python do with a comment?41 secTable: fare, base identifiers; = and + operators; 30 literal.What is a token?42 secPython code import keyword and print(len(keyword.kwlist)) with output 35.How many keywords does Python have?39 secTable: total_marks valid, 2marks invalid, total marks invalid, class invalid.Is 2marks valid?44 secPython code with fare = 455.5, city = "Surat", ok = True, winner = None and their printed output.Is None the same as zero?45 secPython code marks = [45, 72] and if marks[1] > 50: printing 72.What does a colon do?43 secMemory diagram: marks points to box 45, then to box 50, old box cleared.Is a variable a box?43 secPython code tea, coffee = 10, 25 then tea, coffee = coffee, tea, printing 25 10.Do you need a third variable to swap?41 secTable of six types: int 72, float 99.5, complex 3 + 4j, bool True, str "72", NoneType None.Is "72" a number?44 secPython code comparing id(runs) and id(bag) after changes, printing False True.Is a list mutable?44 secPython code print(type(10 / 2)) and print(type("5")) with outputs class float and class str.What type is 10 / 2?42 secPython code runs = input, printing runs + runs as 1515 and int(runs) + int(runs) as 30.What type does input() return?40 secPython code print(17, 9, 2026, sep="-") and print with end="..." giving 17-9-2026 and Wait...Done.What is the default sep?39 secPython code print(int(9.8), float(7)), str(85) join, bool(0), bool("0") with outputs.Does int() round?44 secPython code print(5 + 2.5), print(10 / 2), print(True + 1) with outputs 7.5, 5.0, 2.What is True + 1?43 secPython code print("1\tRiya\n2\tAman") and print('It\'s 5 pm') with their output.Can one print show two lines?46 secPython code print(17 // 5), print(17 % 5), print(17 / 5, 2 ** 3) with outputs 3, 2, 3.4 8.What does % give?44 secPython code ok = bal > 0 and 500 / bal > 2 with bal = 0, printing False.Why no ZeroDivisionError?42 secPython code score = 0, score += 4, score += 6, score *= 2, printing 20.Does Python have ++?44 secPython code bag1 and bag2 with pen and book, printing True, False, True.What does is check?44 secPrecedence table: 1 brackets, 2 **, 3 * / // %, 4 + -.What is 10 + 3 * 2?44 secTable: syntax print("hi" SyntaxError, run-time "5" + 3 TypeError, logical 8 + 9 / 2 wrong answer.Which error lets nothing run?41 secTable explaining traceback parts: Traceback, File line 3, code line, last line with name and reason.Which traceback line do you read first?40 secPython code price = 120, cut = price * 10 / 10, print("cut:", cut) with output cut: 120.0.How do you find a bad line?39 secPython code avg = 80 + 90 / 2 and print(avg) with output 125.0.Why no error message?40 secTable: sequential one by one, conditional choose a path, iterative repeat steps.Does a program always run top to bottom?42 secPython code marks = 68 with if marks >= 75 and elif marks >= 50, printing B.What does a missing colon give?42 secPython code has_ticket = True, age = 65, nested if printing Senior seat.When does the inner if run?42 secPython code comparing r, a, n = 45, 72, 60 with if, elif, else, printing 72.What does and need?41 secPython code m = 40, x = "Yes" if m >= 33 else "No", printing Yes.What is the pattern?42 secTrace table for count in range(3): iterations 1st to 3rd with count 0, 1, 2.What is iteration?43 secTable: range(5) 0 1 2 3 4, range(1, 5) 1 2 3 4, range(1, 9, 3) 1 4 7.Is stop included?43 secPython code looping over "HI" and ["idli", "dosa"] with output H, I, idli, dosa.What does a string give in a for loop?37 secPython code total, balls = 0, 0 looping over [4, 6, 0, 1], printing 11 4.Where do you set the accumulator?41 secTable comparing table of 7, factorial of 5 and series 1 + 3 + ... 19 with start values.Why does factorial start at 1?43 secPython code count = 1, while count <= 3, print(count), count = count + 1, output 1 2 3.When is the condition checked?38 secTrace table over range(1, 6): break at 3 ends loop; continue at 3 skips 3, prints 4 5.Which one ends the loop?42 secTable: for with known count and items; while with unknown count and waiting for an event.Known count?42 secPython code reversing num 1234 with while num > 0, printing 4321.What does num % 10 give?41 sec

Want a plan that actually fits your board dates?

Ask Kajal Ma'am directly, 20+ years teaching computer science. Free demo class first, no payment.

Talk to Kajal Ma'am on WhatsApp

Or see the Class 12 Computer Science course →

Studying outside India?

We coach CBSE, IGCSE & international students across the globe, one-to-one, in your local time zone.

Visit International →