Level 5 : Select correct Output of the following code


str1 = "My salary is 7000";
str2 = "7000"

print(str1.isdigit())
print(str2.isdigit())

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