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