Level 1 : What does this code print, assuming the user types 'c' (continue) at the pdb prompt?


import pdb

number = 5

pdb.set_trace()

number *= 2
print(number)

Author: Ramya | Tags: debugging | 1859+ Python FAQs | Share
inheritance | compute | bitwise-operator | access-modifier | data-structure | data_structure | assignment-operator | control-statement | data-structure | async | dicts | boolean | complex | type-conversion-and-casting | list-comprehension | max-min | list-slicing | methods | min-function | pseudocode | dictionary | built-in-modules | generators | enumerate() | python_version | random | context-manager | loop-control-statements | file-handling | operator-overloading | arbitrary-arguments-(*args,-**kwargs) | invalid-list | literal-characters-and-special-characters | def | object-attribute | multiple-except-blocks | string-formatting | precedence | magic-method | file_handling | list-vs-tuple | mutable | __init_subclass__ | name-mangling | string | else | data-structures | function-argument | counter-function | managing-directories-with-os-and-shutil | installation | class-and-object | counter | syntaxerror | test-discovery | loops | python-operators | recursion | return-statement | exception | reading:-read(),-readline(),-readlines() | syntax-error | identifier | syntax | recurssion | formal-and-actual-parameter | escape-operator | parsing-with-strptime | statement | data-structures-in-python | sorted | control-flow | global | class-and-inheritance | bitwise-operator | boolean-masking | list-mutation | complex-number | functional-programming | init | working-with-dates-and-times | decimal | binary | formatting-with-strftime | sum-function | aggregating-data-with-functools.reduce() | memory | collection | built-in-function | id-function | virtual-environment | thread-synchronization | feature | multithreading | control-flow | iterable | namedtuple | format | conditional-statement | regex | list | variable | floats | time-series-with-pandas | regular-expressions | touples | threading | stack | heap-memory | identity-operators-(is,-is-not) | introduction-to-multiprocessing | round | lists | error-handling | introduction-to-threads | iterators | exponentiation | anchors-(^,-$) | goto-function | string-method | string-method | indexing:-loc-vs-iloc | tuple-unpacking | intering | yield | working-with-temporary-files-using-tempfile | mysql | using-assertions-(assertequal,-assertraises) | map-function | module | arithmetic-operation | staticmethod | while-loop | int | iterator | identity-operator | membership-operators-(in,-not-in) | integers | booleans | type-conversion | mapping-function | encoding | asyncio-module | mathematical-function | split | expand-tab | python-django | constructor | logical-operators | global-keyword | typeerror | factorial-function | matrix-list-comprehension | destructor | datatype | working-with-file-paths | collections | filter | key-value-pairs | error | type-conversion | type_conversion | why-use-multiprocessing-over-threading?-(gil) | conversion | for | choice | matrix | built-in | condition | random-function | datetime | bitwise | higher-order-function | comprehension | basic | file | filter-function | slice | version-check | operator-and | list-method | using-os-and-pathlib-modules | string-formatting | generator | function-and-scope | multiple-inheritance | immutability | list-comprehension | data-type-conversions | list-operation | numeric | binary-operation | difference-between-threads-and-processes | arithmetic-expression | string-concatenation | assert | polymorphism | advanced-file-operations | string-methods | virtual-environment | version | list,-set,-and-dictionary-comprehensions | floating-point-precision | debugging | pass | deep-copy | single-inheritance | string-manipulation | comment | error-handling | attribute | head-and-tail | lambda | string-slicing | comparison | integer | keyword | append | assignment-operators | turtle | list-join | frozenset | range | else-statement | creating-and-starting-threads | sys-module | method | objects | __future__ | class | dataframe-and-series-objects | python-history | application | print | list-comprehensions | descriptors | indexing | using-yield-in-functions | introduction-to-python | import-method | decorator | overriding-methods | sys | scientific-notation | rollback | indentation | overflow | default-arguments | __all__-attribute | dictionary-methods | asyncio | built-in-function | numpy | list-methods-and-slicing | generators-in-python | syntax-error | exception-handling | function | match | min-max-function | print-statement | nested-loop | slicing | call | benefit | input-function | center | writing:-write(),-writelines() | class-and-instance-variable | default-mutable-argument | method-overloading | dictionaries | array | oops | zip | defining-functions | handling-missing-values-(fillna,-dropna) | loop-control | expression | pep | matplotlib | swapping | update | exception-handling | class-decorators | input | walking-through-directories-using-os.walk() | tuple | sorting-and-ranking | operator-or | with-statement | set-operation | identity-operator | file-handling | command-line-parsing | data-type | functions | data-type | interpreter | boolean-and-non-boolean | operator | lambda-functions | operand | pickling--unpickling | postfix | data-types | classes | encapsulation | pandas | loop | design-principle | lambdas | datetime.date,-datetime.time,-datetime.datetime | copy | using-else-and-finally | zfill-function | regular-expression | unit-testing | using-lists-as-stacks | parameter | tuples | input-function | namespace | joining-and-merging-dataframes | opening-files-(open()) | conditional-statement | raise-statement | library | logical-operation | gil | implementation | docstring | directory-operations | strings | using-join()-and-is_alive()-methods | tuple-methods | global-variable | conditional-statements | list-indexing | dictionary-comprehensions | mathematics | filtering-and-indexing | immutable-data-type | global-variable | reading-and-writing-large-files-efficiently | oop | functional-programming | inherit | creating-custom-modules | lambda-function | operators | fabs-function | logical-operator | sets | python-module | odd-number | round-function | math | set | using-map()-for-transformations | while-and-for-loop | static-method | software-design | reading-and-writing-files | operations | string-slicing | logical-operator | thread | while-loops | math-copysign | zip-function | multiprocessing | python-syntax-and-structure | memory-management | sorting | shallow-copy | using-the-threading-module | while-else-loop | package-management | working-with-binary-files-(rb,-wb) | sum() | thread-safe-data-structures-(queue.queue) | string-iteration | precedence-and-associativity | python | python-repl | raise | quantifiers-(*,-+,-?,-{}) | multiple-inheritance | join ...