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