Python Programs hub
Index of the ten most-searched beginner Python programs, each with approaches, output, a dry run and practice links.
Home › Explore PyDebug
Python सीखने, debugging practice करने, errors समझने और output predict करने के लिए सभी useful resources एक जगह खोजें।
This directory lists every public page on PyDebug, grouped by what you are trying to do. Search by title, topic or keyword, narrow the list by category, language or difficulty, and open the page you need — no account, no sign-in, nothing to install.
331 public pages8 categories94 Hindi pagesFree · no login
Type anything into the search box — a page title, an exception name such as KeyError, a topic such as loops, or a Hindi word — and the list filters as you type. The three dropdowns narrow it further: Category for the kind of page, Language for English or Hindi, and Difficulty where a page is marked beginner, intermediate or advanced. Nothing here needs an account.
Not sure where to start? If you landed here from an error message, open the error explainer and pick your exception. If you want a route rather than a single answer, follow a learning path. If you just want to run code, the Python playground is one click away. Hindi में पढ़ना है तो Hindi hub से शुरू करें।
Showing all 331 pages across 8 categories.
The classic beginner programs every Python course starts with — factorial, Fibonacci, palindrome, prime numbers, star patterns and more. Each page gives you the problem statement, two or three working approaches, the exact output, a line-by-line dry run and the errors that usually break the program. Every program exists in English and in Hindi, so pick the language you think in.
Index of the ten most-searched beginner Python programs, each with approaches, output, a dry run and practice links.
Check whether a number equals the sum of its own digits raised to the digit count — loop, function and one-liner versions.
Three ways to compute n! — an explicit loop, a recursive function and math.factorial — with the edge cases each one hides.
Print the Fibonacci sequence with a while loop, a reusable function and a generator, and trace how the two seeds move.
Print a formatted times table with range(), f-strings and nested loops — including the alignment beginners usually get wrong.
Test strings and numbers for palindromes with slicing, a two-pointer loop and reversed(), plus the case and space traps.
Decide whether a number is prime with a naive loop, a square-root bound and a reusable helper — and why 1 is not prime.
Reverse digits with modulo arithmetic or by converting to a string, and handle the trailing-zero and negative cases.
Pyramids, triangles and diamonds built from nested loops — the row/column maths behind every star pattern question.
Add up a number's digits with while/modulo, with str() and sum(), and with recursion — three habits, one result.
Swap variables with a temporary, with tuple unpacking and with arithmetic — and why a, b = b, a never needs a temp.
दसों popular Python programs की Hindi index — हर page पर approach, code, output और dry run।
Armstrong number Hindi में — digits की power का sum, loop और function दोनों तरीके, साथ में dry run।
Factorial Hindi में — loop, recursion और math.factorial, और हर तरीके की common galti।
Fibonacci series Hindi में — while loop और function से series print करना, step-by-step dry run के साथ।
Multiplication table Hindi में — range() और f-string से साफ़ output, nested loop की पूरी समझ।
Palindrome Hindi में — string slicing [::-1] और loop दोनों से check, numbers के लिए भी वही logic।
Prime number Hindi में — divisor loop, square-root optimisation और 1 prime क्यों नहीं है।
Number reverse Hindi में — modulo वाला गणित और string तरीका, दोनों का dry run।
Star patterns Hindi में — pyramid, triangle और diamond के nested loops का row-column गणित।
Digits का sum Hindi में — while/modulo, str() + sum() और recursion, तीनों approaches।
Swap Hindi में — temp variable, tuple unpacking (a, b = b, a) और arithmetic तरीका।
The % 2 test, a reusable is_even() function, and the conditional-expression style — with negatives handled.
Even odd check Hindi में — % वाला test, function और conditional expression, साथ में dry run।
The 4-100-400 rule as nested ifs, as one boolean expression, and via calendar.isleap() — century traps included.
Leap year Hindi में — 4-100-400 का rule, nested if, boolean expression और calendar.isleap()।
A countdown loop, the prepend trick, and the slicing idiom s[::-1] — plus why s.reverse() cannot exist.
String reverse Hindi में — loop, prepend trick और slicing s[::-1], common errors के साथ।
Character-by-character counting, case-normalised functions, and one-line sum() generator versions.
Vowels गिनना Hindi में — character loop, .lower() और sum() वाला one-liner।
Search from the smaller number, Euclid's algorithm step by step, and math.gcd() — HCF explained.
GCD/HCF Hindi में — Euclid का algorithm, search method और math.gcd(), dry run समेत।
The if/elif ladder, the running-champion pattern that scales, and the built-in max().
तीन numbers में सबसे बड़ा — if/elif ladder, champion pattern और max()।
The accumulator loop, Gauss's n(n+1)/2 formula, and sum(range()) — with the trace-vs-formula check.
1 से N तक का sum — loop, Gauss formula और sum(range()), Hindi में dry run।
P × R × T / 100 directly, as functions, and with formatted input/output — compound vs simple flagged.
Simple interest Hindi में — P×R×T/100 formula, function और formatted output।
Chopping with // 10, a function defending zero and negatives, and the len(str(abs(n))) one-liner.
Number के digits गिनना — // 10 वाला loop, edge cases और len(str()) trick।
Remove-the-max, sorted set [-2], and the one-pass two-variable scan — duplicates handled deliberately.
List में दूसरा सबसे बड़ा — तीन तरीके, duplicates का case और dry run।
Bubble sort and selection sort written out, then sorted() vs .sort() with key= — and the None trap.
Bubble sort और selection sort Hindi में, फिर sorted() बनाम .sort() का फर्क।
C × 9/5 + 32 in both directions, as functions, and as a formatted conversion table.
Celsius-Fahrenheit conversion Hindi में — दोनों तरफ का formula और table बनाना।
Complete Python games you can run in the browser, copy or download, and study line by line. Each game has free code and a short logic explanation in English and Hindi. Ad-free for everyone.
Play complete Python games in your browser, copy or download the code, and learn the logic step by step.
Run a free Python Guess the Number game in your browser and understand the random, loop and input logic.
Play a free Python Hangman word game in your browser and learn how the guessing logic works.
Play a two-player Tic-Tac-Toe game in Python in your browser and study how the win check works.
Python गेम्स को browser में खेलें, कोड कॉपी या डाउनलोड करें, और लॉजिक को step by step समझें।
ब्राउज़र में Python का Guess the Number गेम चलाएँ और random, loop और input का लॉजिक समझें।
ब्राउज़र में Python का Hangman शब्द गेम खेलें और अनुमान लगाने का लॉजिक सीखें।
ब्राउज़र में Python का दो-खिलाड़ी Tic-Tac-Toe गेम खेलें और जीत की जाँच का लॉजिक समझें।
Interactive challenges you solve in the browser: fix a real bug, or predict what the code prints before you run it. Every problem page explains the rule behind the bug, walks the trace, and lists the wrong fixes people try first — then hands you the editor. Start with the two indexes if you would rather browse by topic than scroll a list.
The live catalog — filter free bug-fixing and output-prediction challenges by topic, type and difficulty, then solve them in the browser.
Every problem on one lightweight page, grouped by topic — the fastest way to scan the whole catalog without JavaScript.
Why debugging practice beats copying tutorials, and how to build a daily habit out of short broken-code exercises.
This PyDebug exercise focuses on abs and type conversion.
A KeyError means the dictionary lookup asked for a key that is not present.
Unlike Java or C++, Python never injects an implicit `this` keyword inside class methods.
break and continue are the two ways a loop body can interrupt itself, and they do opposite things: break abandons the…
Python executes a module from top to bottom.
TypeError: missing 1 required positional argument means the call supplied fewer values than the def line demands.
a = b = [1, 2] assigns the SAME object to both names, right to left: the list is created once, then bound to b and to…
Star and character pattern loops appear in almost every introductory Python lab and placement round.
This PyDebug exercise focuses on checking membership in a list.
An attribute assigned in the class body belongs to the class itself, and every instance reads it through lookup — so…
This PyDebug exercise focuses on comparison chains.
ValueError: invalid literal for int() with base 10 means int() received a string whose characters do not form a whole…
int() and float() can convert text only when the text represents a valid number in the requested format.
Object-oriented output questions test whether you track state attached to `self` across multiple method calls.
When a subclass defines a method with the exact same name as its parent class, Python uses dynamic method resolution…
This PyDebug exercise focuses on custom exception messages.
Default parameter values fill in for arguments the caller omits: def greet(name, msg='Hello') lets greet('Sam') and g…
del data['key'] raises KeyError when the key is absent — deletion is a lookup first.
This PyDebug exercise focuses on dictionary comprehension with condition.
d.get(key, default) is the crash-free lookup: it returns the stored value when the key exists and the default when it…
This easier companion drills the core get() contract with simple data: d.get('missing', 0) yields 0 without touching…
A dict literal with the same key twice does not error — the later value silently overwrites the earlier one, so {'a'…
Square-bracket lookups (`d[key]`) crash with `KeyError` the moment a key is absent, whereas `d.get(key, default)` pro…
This PyDebug exercise focuses on dictionary pop with default.
This PyDebug exercise focuses on dictionary update behavior.
This PyDebug exercise focuses on division by zero in a list comprehension.
Python allows else on a for loop, and its meaning surprises almost everyone: the else block runs when the loop finish…
enumerate(items, start=1) numbers the items 1, 2, 3...
Recursive numeric functions build up deferred multiplications on the call stack until they hit their base case, then…
range(start, stop, step) counts from start toward stop in jumps of step, always excluding stop itself.
A function without a return statement — or one whose return sits in a branch that didn't execute — hands back None.
Any Python function containing `yield` becomes a generator factory: calling it does not run a single line of its body…
This PyDebug exercise focuses on in operator on a list.
Python uses indentation as syntax.
This PyDebug exercise focuses on integer division and modulo.
This PyDebug exercise focuses on join and split.
b = a does not copy a list — it makes b a second name for the same object, so a.append() shows up in b and vice versa.
This PyDebug exercise focuses on list extend vs append.
This PyDebug exercise focuses on list methods in sequence.
[0] * 3 gives [0, 0, 0] — handy.
This PyDebug exercise focuses on list slicing with step.
This PyDebug exercise focuses on loop range boundaries.
Accumulator loops initialize a running total (usually `total = 0`) before a `for` loop and add each element from `ran…
In Python, a for loop's variable is not scoped to the loop — after the loop finishes, the variable still exists and h…
This program crashes with IndexError because its loop asks for one more position than the list owns — the classic res…
This PyDebug exercise focuses on missing colon after function definition.
Every compound statement header in Python — for, while, if, elif, else, def, class, try — must end with a colon; the…
After a header line ending in a colon, Python requires the next statement to be indented — indentation is the block s…
TypeError: can only concatenate str (not "int") to str is Python refusing to guess: 'Score: ' + 90 could mean 'Score…
If a function assigns to a name anywhere in its body, Python treats that name as local throughout the function.
Learners in British and Indian English curricula naturally type `import maths`, only to hit `ModuleNotFoundError: No…
This PyDebug exercise focuses on multiple except with a shared exception.
This PyDebug exercise focuses on multiple return values.
Default arguments are evaluated once, when Python creates the function, not every time the function is called.
Negative indexes count from the end: items[-1] is the last element, items[-2] the second-to-last, and for a list of l…
data['user']['address']['city'] is a chain of separate lookups, evaluated left to right, and it fails at the FIRST mi…
This PyDebug exercise focuses on nested loop with a shared variable.
This PyDebug exercise focuses on not operator with different types.
This PyDebug exercise focuses on operator precedence.
This PyDebug exercise focuses on rounding numbers.
Building a set discards duplicates on insertion: set([1, 2, 2, 3]) holds three elements, and len() reflects the dedup…
This PyDebug exercise focuses on setdefault behavior.
items[1:3] returns exactly two elements — positions 1 and 2, never position 3.
This PyDebug exercise focuses on sorted with a key function.
Python 3 refuses to guess how a string compares to a number: sorted([3, 'one', 2]) raises TypeError: '<' not supporte…
This PyDebug exercise focuses on string case methods.
This PyDebug exercise focuses on string comparison basics.
This PyDebug exercise focuses on string concatenation with.
This puzzle layers two string rules: multiplication builds a longer repeated string, and indexing then reads one char…
This snippet combines two rules that are individually simple: s * n repeats a string, and a loop accumulator grows on…
'ab' * 3 builds 'ababab' — string multiplication repeats the whole string, not each character, and len() then counts…
This PyDebug exercise focuses on string startswith and endswith.
This PyDebug exercise focuses on swapping variables with tuples.
try/except/else has a precise execution order: the try body runs; if it raises a matching exception, the except body…
Exception control-flow puzzles test the exact order in which `try`, `except`, optional `else`, and `finally` blocks e…
TypeError: 'tuple' object does not support item assignment enforces the whole point of tuples: once built, their slot…
This prediction puzzle probes what tuple immutability really guarantees: the tuple's slots can never be reassigned, b…
This PyDebug exercise focuses on tuple unpacking with functions.
Tuple unpacking assigns elements of any right-hand sequence positionally to multiple target variables on the left (`a…
A Python `set` is an unordered hash table built for O(1) membership checks (`x in s`) and deduplication — NOT positio…
Python 3 refuses to guess whether `'10'` is less than or greater than `2` (alphabetically `'10' < '2'`, numerically `…
This bug is about statement order: the code reads a variable on a line that runs before the assignment that creates i…
This PyDebug exercise focuses on using instead of in a check.
if x = 5: is a SyntaxError in Python because a single = is assignment and only == compares.
Unpacking (`a, b = items`) demands an exact 1-to-1 match between the number of target variables on the left and the n…
This PyDebug exercise focuses on while loop with a condition update.
An `except SomeError:` clause catches ONLY instances of `SomeError` (and its subclasses).
Python measures containers with the built-in len(items) — there is no items.length attribute and no items.size() meth…
A string that contains the same quote character it is delimited by ends earlier than intended: 'it's fine' terminates…
Adding a key to a dictionary is plain assignment: data['city'] = 'Pune'.
This PyDebug exercise focuses on zip combining two lists.
Deep-dive explainers for the exceptions that actually stop your program. Each one decodes the traceback line by line, shows a runnable example that raises it, lists the real causes, and links to practice where you repair that exact error. English explainers live under /errors; the Hindi versions cover the same ground in simple Hinglish.
Pick the exception in your traceback and get the full decode: meaning, real example, causes, fix routine and practice.
Typos, definition order and scope — the three reasons Python says a name does not exist, read straight from the message.
str + int, 'not callable', 'not iterable', missing arguments — each famous TypeError message decoded and fixed.
Why len(list) is never a valid index, and the four loop shapes that walk one step past the end of a sequence.
Exact-match rules for dict lookups, get() vs [] vs setdefault, and the nested-dictionary traps behind most KeyErrors.
Right type, impossible value — what int() really accepts, plus the unpacking variants of the same exception.
Almost always a missing-data bug in an arithmetic costume — empty lists, averages and the modulo variant.
Why the caret points one line late, the six causes behind almost every parse error, and how to isolate them fast.
Expected an indented block, unexpected indent, unindent does not match — plus the invisible tabs-versus-spaces version.
Reading the type in the message, the NoneType trap from in-place methods, and how dir() ends the guessing.
One reference for sixteen Python exceptions — IndexError, KeyError, TypeError, SyntaxError, AttributeError and more.
A fix-first walkthrough of the fifteen tracebacks beginners hit most, each with the message, cause and corrected code.
छह सबसे common Python errors Hindi में — हर error का मतलब, कारण, fix और browser practice।
name 'x' is not defined क्यों आता है — spelling, order और scope की पाँच वजहें और हर एक का fix।
str + int, not callable और not iterable — TypeError के हर रूप का Hindi explanation और समाधान।
Dictionary में missing key क्यों crash करती है, get() कब बेहतर है और nested dict की galtiyan।
Off-by-one, खाली list और loop की galtiyan — index range से बाहर क्यों जाता है, Hindi में।
int('abc') क्यों fail होता है, input() के साथ ValueError और उसे try/except से safe करना।
Division by zero का असली कारण — खाली list का average और modulo, साथ में guard condition।
expected an indented block और unexpected indent — tabs vs spaces की गड़बड़ Hindi में सुलझाएँ।
'NoneType' object has no attribute — list और string के methods की अदला-बदली से बचने का तरीका।
Colon, bracket और quote की छूटी हुई galtiyan — Python किस line पर रुकता है और क्यों।
No module named 'x' — pip install के बाद भी error क्यों, और सही environment कैसे चुनें।
Traceback को नीचे से ऊपर पढ़ने का तरीका — कौन-सी line असली culprit है, Hindi में step by step।
तीन तरह की galtiyan में फ़र्क — कौन-सी code चलने से पहले पकड़ी जाती है और कौन-सी चुपचाप गलत output देती है।
input() का string, = vs ==, mutable default और नौ और galtiyan जो हर नए Python learner से होती हैं।
A Hindi 5-step debugging method for reading Python tracebacks, finding line numbers and fixing common NameError, TypeError and IndexError issues.
Why the value in front of your brackets is a number, where it came from, and the one-edit fix.
Strings cannot be changed in place — the slice rebuild, the list round-trip and the string methods that work.
Adding a number to a string, the input() trap, and why f-strings are the better habit.
You subscripted a list with a string — the JSON shape confusion behind it and the dict-vs-list decision.
for i in 5 fails because numbers have no items — the range() fix and the count-vs-collection mix-up.
When the number is on the left of the +, which operators share the rule, and converting at the boundary.
What int() refuses — "12.5", empty strings, commas, units — and the validation patterns that make it safe.
a, b = three values — the star operator, maxsplit, and the split() habits that prevent the mismatch.
Why len(list) is never a valid index, the loop shapes that walk too far, and the empty-list bug hiding behind it.
Something returned None and you kept going — the in-place list methods, the missing return, and the None check.
Not installed, misspelled, wrong environment, or a shadowing file — four causes, four fixes, and pip explained.
Lists cannot be dict keys or set members — the tuple fix, what hashable means, and the nested-data pattern.
Assigning anywhere in a function makes a name local for the whole function — the global, nonlocal and argument fixes.
A dict key used on a string — the dict-loop and unparsed-JSON mistakes, with the .items() and json.loads fixes.
sort() and append() return None, and so does a function with no return — why the value is None and how to find it.
input() returns text, so '5' * '3' is not 15 — the int() and float() fix and what sequence repetition really does.
sum = 0 overwrote the built-in — the shadowed-name, missing-operator and extra-parentheses causes with the rename fix.
More names than items — split() with a missing separator, short rows, and the star-unpacking and padding fixes.
Stray leading spaces, tabs mixed with spaces and code pasted from the web — plus how to see whitespace in your editor.
The working-directory trap, hidden extensions and the pathlib fix — relative paths start where you ran the script.
The module was found, the name was not — typos, circular imports, shadowing files and version differences.
The missing base case, the base case never reached, mutual recursion, and when raising the limit is the wrong answer.
The missing quote, a trailing backslash in a Windows path, and multi-line strings — plus why the caret points one line late.
Smart quotes and lookalike Unicode from Word, PDFs and chat apps — how to read the code point and find the invisible ones.
You meant append, not +. The append vs extend vs concatenation fixes and the f-string version when you wanted text.
Numbers have no length — the len(str(n)) digit count, the reassigned variable, and why generators are not sized.
Percent is also modulo, so the message misleads — the trailing-comma trap, mismatched placeholders and the f-string fix.
The module loaded, the name is not in it — lazy submodules, circular imports, shadowing filenames and stale __pycache__.
Binary files read as text, the wrong encoding, the UTF-8 BOM, and why you should always pass encoding= to open().
true, false and null are JavaScript and JSON — the True/False/None mapping and the json.loads fix for parsed payloads.
The four ways None reaches a for loop, unpacking or list(), how to find which one you have, and the guard that stops each.
EOF means the parser hit the end of the file inside an unclosed bracket, string or block — plus the Python 3.10 message change.
Which math functions reject which inputs, why math.sqrt(-1) fails where **0.5 does not, and the cmath alternative.
Strings are immutable so append is a list method — the O(n^2) cost of repeated += and the join pattern that builds a string correctly.
The seven inputs that break float() — currency symbols, thousands commas, empty cells and units — with a cleaning pipeline.
The valid index range for a string, the five ways past the end, and why slicing never raises but indexing always does.
The block header has a colon but no body under it — the four causes, the pass fix, and the tabs-versus-spaces trap.
Comparing text with numbers using an ordering operator, where the string comes from, and the sorting case that hides it.
strptime directives, the mismatches that cause it, ISO 8601 with fromisoformat, and naive versus aware datetimes.
Why utf-8 almost never fails, the cp1252 and ascii cases, the Windows console fix, and always passing encoding to open().
A function returned None instead of a tuple on one code path — how to find which return failed, and the four fixes.
Why deleting keys inside a loop fails, and the four safe patterns — collect keys, build a new dict, iterate a copy, or pop.
The long-form guides and structured paths: tutorials, the debugging method, output-prediction training, the glossary, interview questions and eight ordered learning paths that sequence problems from first syntax error to interview traps. Use these when you want a route through the material instead of a single answer.
Free tutorials covering variables, data types, loops, functions and error handling, each ending in something to run.
Trace shared lists, shallow and deep copies, and nested mutable objects with runnable examples.
Find the failing line, trace values, understand chained exceptions and test a targeted fix.
A repeatable method for finding bugs fast: read the message, narrow the range, print the right thing, verify the fix.
Ten screening questions interviewers actually ask — mutable defaults, sort() returning None, for/else — with answers.
Plain-English definitions for 40+ Python terms, from iterable and mutable to scope, slice, traceback and f-string.
The skill of reading code and knowing what prints — worked examples, the rules behind them and interactive drills.
Scope traps, mutable defaults, chained comparisons and seven more puzzles that break confident guesses.
36 predict-the-output questions with answers and line-by-line explanations across strings, lists, dicts and loops.
A loop over range(1, 10, 3) with a running total — predict every printed line including the last one.
nums[1:4], nums[-2:] and nums[::2] — three slices, three outputs, and the rule that explains all of them.
word * 3, len() of the result, indexing into it and the '' * 0 edge case — four prints to predict.
A list default argument is created once, not per call — so the second call sees the first call's items. Verified output plus a line-by-line trace.
Two names, one list: why changing one row of a built grid changes the other, and why list.copy() still is not enough for nested lists.
list.append() changes the list and hands back None. Print the result of either line and see why chained 'x = y.append(…)' wipes a list.
sorted() returns a new list once — appending afterwards does not re-sort it. Compare sort() and sorted() before an exam question traps you.
A missing key is a KeyError with brackets and None with get(). Plus what len() and pop() report after setdefault adds a key.
1, 1.0 and True are one member, not three — and set order is not insertion order. Verified output with the hash rule behind it.
Three slice expressions on 'python' — negative stop, a reversed slice chained with another slice, and why the end index never appears.
Floor division rounds down, not toward zero — which is why -7 // 2 is -4 and -7 % 2 is still 1. The rule that fixes both signs at once.
Binary floats cannot hold 0.1 exactly, so 0.1 + 0.2 prints 0.30000000000000004 and round(2.675, 2) goes down. Real output, plus Decimal.
A finally block runs even when the try block returns — and it runs before the returned value reaches the caller. Two verified traces.
Parentheses do not make a tuple — the comma does. See why (1) is an int, (1,) * 2 differs from 1 * 2, and unpacking needs that comma.
0 is false but '0' is true, empty lists are false, and not/and/or return objects instead of booleans. Verified output with the rules.
Eight ordered paths that sequence the problem catalog from first syntax error to interview traps, with free progress tracking.
Twelve broken programs that teach syntax by repair — quotes, colons, indentation and print().
Thirteen problems on names, values and conversions — NameError, ValueError, int() vs float() and type juggling.
Twenty problems on indexing, slicing, copies vs references, KeyError and safe dictionary lookups.
Sixteen problems on range() bounds, off-by-one errors, infinite while loops, break vs continue and for/else.
Twelve problems on arguments, defaults, return values and scope — from missing arguments to the mutable default trap.
Ten problems on try/except/else, finally, except ordering and when catching an exception is the wrong fix.
Eighteen ordered drills that train predict-the-output across strings, lists, dicts and control flow.
The sixteen trick questions interviewers reuse — mutable defaults, class variables, aliasing and sequencing.
Articles on debugging technique, error fixes, output prediction and how to practise Python without tutorial fatigue.
15 beginner Python projects ordered by difficulty — what each one teaches, how long it takes, and the five-step method that gets them finished.
One-page Python reference: data types and mutability, list, dict, set and string methods, loops, functions, comprehensions and every common error with its fix.
List comprehensions explained — filtering, nested loops, dict and set comprehensions, generator expressions, and when a plain for loop is the better answer.
A free guided daily session: fix a bug, predict an output, then review one concept.
Try free classroom tools and discuss a scoped school or coaching cohort pilot.
Python concepts explained in simple Hindi — loops, lists, strings, dictionaries, input(), OOPs, exception handling, MCQs and board-exam output questions, plus a 30-term Hindi glossary. Hindi error guides sit in the Python Errors category and Hindi program pages in Python Programs; set the Language filter to Hindi to see all of them together.
Hindi में Python सीखने की शुरुआत — errors, glossary, concepts और browser practice एक जगह।
Hindi/Hinglish guide for running Python code on a phone browser with no app install, plus mobile keyboard mistakes and practice links.
Mobile-first Hindi guide to choosing and using a free browser Python compiler for snippets, input, output and beginner practice.
Hindi guide to free Python practice questions: bug-fix drills, output prediction, topic order and a daily routine for beginners.
Beginner Hindi roadmap for learning Python from a phone: free compiler, topic order, 20-minute routine, errors and practice questions.
Python के 30 ज़रूरी terms Hindi में — variable, list, dictionary, loop, function, exception और बाकी।
range(), enumerate, nested loop, break-continue और for-else — पूरा for loop Hindi में।
while condition, counter updates, break/continue और infinite loop की Hindi guide, code और output के साथ।
if, elif, else, comparisons और nested conditions Hindi में, runnable examples और expected output के साथ।
def, parameters, arguments, return बनाम print और variable scope Hindi examples के साथ।
with open(), read, write और append modes, UTF-8 व missing files का Hindi में practical guide।
append, extend, insert, remove, pop, sort, reverse और copy — हर method का असर example के साथ।
upper, lower, strip, split, join, replace और find — string के सारे ज़रूरी methods Hindi में।
Dictionary बनाना, get(), keys-values-items, loop, nested dict और update — पूरी guide Hindi में।
input() हमेशा string क्यों देता है, int/float में कैसे बदलें और ValueError से कैसे बचें।
class, object, __init__, self, inheritance, encapsulation और polymorphism आसान Hindi examples में।
try, except, else, finally का सही क्रम, raise करना और bare except क्यों खतरनाक है।
12 multiple choice questions Hindi में — हर एक का सही answer और उसके पीछे का explanation।
Seven original Class 11 level questions on variables, conditions, loops, strings and lists, with answers and dry runs.
CBSE Class 12 style के 8 output programs — सही answer और हर line का Hindi explanation।
Output predict करने के सवाल Hindi में — slice, loop, dict और string के tricky cases।
Interview में पूछे जाने वाले debugging सवाल Hindi में — traceback, mutable default और is vs ==।
15 सबसे ज़रूरी Python interview सवाल आसान जवाब के साथ — mutable default, output prediction, OOP और 7-दिन का plan।
12 beginner Python projects Hindi में — हर एक का scope, कौन-सा concept सीखेंगे, और portfolio में कैसे दिखाएँ।
Mutability, memory, speed और dict key वाला नियम — list और tuple में असली अंतर और कब क्या use करें।
range() के तीनों forms, negative step, enumerate और off-by-one से बचाव — पूरे examples और 5 common गलतियाँ।
[start:stop:step], negative index, string उल्टा करना और palindrome check — slicing के सारे नियम examples के साथ।
Base case क्या है, call stack कैसे काम करता है, factorial और Fibonacci, और RecursionError क्यों आता है।
Duplicate हटाना, union/intersection/difference, O(1) membership, frozenset और 5 common गलतियाँ — examples के साथ।
अंदर-बाहर loop का dry run, star patterns, 2D list पर चलना और break सिर्फ अंदर वाले loop को तोड़ता है।
दोनों का फर्क, for-else clause कब चलता है, nested loop में असर और infinite loop से बचाव।
Anonymous function क्या है, sorted() के key में असली use, filter-map बनाम comprehension और closure वाला जाल।
@ असल में क्या करता है, functools.wraps क्यों ज़रूरी है, arguments वाले decorator और 3 काम के examples।
Data types, list/dict/set/string methods, loops, functions और हर common error का एक-line fix — एक ही page पर।
List comprehension Hindi में — syntax, if filter, nested loops, dict और set comprehension, generator expression और कब for loop बेहतर है।
Dictionary comprehension Hindi में — syntax, filter, key-value उलटना, nested dict और duplicate keys की चेतावनी।
Python scope Hindi में — global और local variable, UnboundLocalError क्यों आता है, global और nonlocal कब use करें।
*args और **kwargs Hindi में — tuple बनाम dict, positional बनाम keyword, unpacking और default arguments का trap।
Generator Hindi में — yield function को कैसे बदलता है, lazy evaluation से memory बचाना, infinite sequences और next()।
String formatting Hindi में — f-string, .format() और % operator, decimals, padding, alignment, percent और date formatting।
map, filter और reduce Hindi में — तीनों क्या करते हैं, lambda के साथ use, comprehension से तुलना और कब कौन सा चुनें।
zip() Hindi में — दो lists साथ चलाना, अलग लंबाई पर क्या होता है, zip_longest, dict बनाना और transpose।
sort() और sorted() Hindi में — None लौटाने वाला trap, key function, reverse, dict sorting और mixed types की गलती।
String को number में बदलना Hindi में — int(), float(), base, comma और currency हटाना, और ValueError से बचाव।
datetime Hindi में — date और time बनाना, format करना, parsing, timedelta से जोड़-घटाव और timezone की गलतियाँ।
JSON Hindi में — loads बनाम load, true/false/null की mapping, nested data, KeyError से बचाव और API responses।
Class 11–12 CS और कॉलेज लैब प्रैक्टिकल के 20 सबसे ज़रूरी Python viva सवाल और उनके छोटे, सटीक जवाब — उदाहरण सहित।
CBSE Class 11–12 और 1st-year Python lab की practical file के ज़रूरी programs Hindi में — साफ code, output और dry-run के साथ।
TCS NQT, Infosys, Wipro और campus placement के tricky Python output prediction MCQ सवाल Hindi में — dry-run और शॉर्टकट नियम।
Python में star (*), pyramid, triangle और number pattern programs Hindi में — बिना रटे row-column का आसान formula और उदाहरण।
CBSE Class 12 CS (083) और कॉलेज प्रैक्टिकल के लिए Python list से Stack का पूरा PUSH, POP, PEEK और Underflow प्रोग्राम Hindi में।
CBSE Class 12 CS (083) बोर्ड परीक्षा के Find the Output, Error Finding (Underline Correction) और random.randint() सवाल Hindi में।
The interactive parts of PyDebug: the in-browser Python compiler, the AI code teacher, today's challenge, the embeddable practice widget, the public leaderboard and the pages for teachers and community members. Everything here is usable without an account unless the page says otherwise.
Write and run Python in the browser — real interpreter, real tracebacks, input() support, no install and no signup.
Paste any Python program and get the real output, every bug with its line number and a line-by-line walkthrough.
Every public PyDebug page in one list, grouped by category. Open any lesson, practice problem or error guide in one tap, no search needed.
One fresh challenge every day plus a 90-day archive — a five-minute habit that keeps a streak alive.
Free topic-wise assignment links, warm-up challenges and projector-friendly problems for Python teachers.
Drop a free Python output-prediction widget into any blog, course or LMS with a single iframe tag.
Six ways to take part: the daily challenge, the leaderboard, classrooms, the embed widget, the blog and the ground rules.
How discussions stay safe, respectful and educational — what is encouraged, what is prohibited and how to report.
Public rankings by XP, problems solved and streak length, with weekly boards and your exact position.
What the paid plan unlocks — hard problems and an ad-free editor — and what stays free forever, including every hint.
Explore 12 timed Python papers: free Paper 1, Pro access, how to take a test, results, explanations and percentile rules.
The free Bronze and Pro Silver, Gold and Diamond requirements, how to claim earned proof, and public ID verification.
Earn a verifiable Python certificate by solving real bug-fix and output-prediction problems. Four tiers, published criteria.
Take a timed Python paper and review your saved results. 12 papers, 25 questions and 30 minutes each; Paper 1 is free, Papers 2–12 require Pro.
66 free practice tasks, short lessons and 12 scheduled 30-minute mocks. Save dates, catch up and track recorded results. Papers 2–12 require Pro.
What PyDebug is, how it works, how to reach us, and the policies that govern the platform. These pages answer the account, pricing, privacy and data questions that come up before you sign up for anything.
Why PyDebug teaches Python through broken code, who builds it and how the practice model works.
Guest mode, premium features, XP and streaks, accounts and data — the questions learners ask most, answered.
Reach the team about accounts, payments, bugs, content corrections or classroom use.
What data PyDebug collects, how it is used and stored, and the choices you have over it.
The agreement that covers your use of PyDebug — accounts, content, payments and acceptable use.
How premium billing, cancellations and refunds work, and the window in which you can request one.
Which cookies PyDebug sets, what each one does and how to control them in your browser.
The educational scope of PyDebug content, third-party services and the limits of what the platform guarantees.
This directory only lists pages that are public and indexable, so everything above opens without an account. Pages that belong to a signed-in learner — the dashboard, profile, notifications and checkout — are deliberately left out.
If a page is missing, the machine-readable list is always current: see sitemap.xml for every crawlable URL, all problems A–Z for the complete practice catalog, or contact us and we will point you at the right page.