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

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