Level 9 : Suppose s is “\t\tWorld\n”, what is s.strip()?

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