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