Level 1 : What is the output of the following code?


print('abcdefghijfg'.split('fg', -1))

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