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


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

Author: anusha | Tags: string | 1736+ Python FAQs | Share
object-attribute | installation | functions | stack | overflow | error | context-manager | list-slicing | data-structure | objects | random-function | classes | asyncio | operator-and | split | control-statement | tuple-unpacking | match | conditional-statement | application | enumerate() | syntax-error | exception | constructor | set-operation | for | format | exception-handling | destructor | while-loop | zfill-function | package-management | class-and-inheritance | matplotlib | expand-tab | datatype | function-argument | collections | max-min | input-function | type_conversion | lambda-function | assert | multiple-inheritance | identity-operator | namespace | math-copysign | string-formatting | slice | exception-handling | list-vs-tuple | inheritance | mutable | loops | sorted | data-type | while-else-loop | implementation | input-function | descriptors | call | boolean-and-non-boolean | copy | string | functional-programming | def | mathematics | file-handling | condition | boolean | data-type | arithmetic-expression | global-keyword | zip | python | dictionary | string-method | with-statement | logical-operator | multiprocessing | control-flow | comparison | typeerror | class-and-object | control-flow | precedence-and-associativity | raise | else-statement | generators | input | append | nested-loop | shallow-copy | regular-expression | virtual-environment | virtual-environment | list-operation | yield | counter-function | min-max-function | pseudocode | oops | polymorphism | tuple | formal-and-actual-parameter | file_handling | loop | class-and-instance-variable | comprehension | sorting | conditional-statement | logical-operator | async | rollback | operator | variable | id-function | frozenset | while-and-for-loop | version-check | center | zip-function | set | indentation | assignment-operator | python_version | version | keyword | thread | list | global | choice | update | matrix | benefit | error-handling | operator-overloading | factorial-function | module | library | encapsulation | python-django | mathematical-function | data-structures | higher-order-function | file | pep | scientific-notation | feature | __future__ | round | inherit | sum() | global-variable | numpy | list-method | function | string-method | statement | list-indexing | compute | list-join | slicing | filter | built-in-function | immutability | math | dicts | identifier | syntaxerror | pickling-&-unpickling | logical-operation | basic | precedence | bitwise-operator | multithreading | operations | string-slicing | interpreter | built-in | join | parameter | lambda | loop-control | generator | iterable | python-history | recurssion | conversion | mysql | floating-point-precision | python-repl | global-variable | map-function | complex | namedtuple | string-concatenation | indexing | iterator | pandas | python-module | recursion | invalid-list | binary-operation | import-method | staticmethod | data_structure | array | syntax-error | list-mutation | list-comprehension | bitwise | bitwise-operator | min-function | deep-copy | attribute | head-and-tail | counter | print-statement | list-comprehension | operators | fabs-function | print | name-mangling | dictionaries | return-statement | lists | memory-management | range | escape-operator | complex-number | sum-function | string-iteration | operand | immutable-data-type | encoding | swapping | comment | software-design | sys-module | generators-in-python | __init_subclass__ | oop | arithmetic-operation | heap-memory | memory | built-in-function | odd-number | init | docstring | sys | numeric | gil | regex | file-handling | class | postfix | design-principle | string-slicing | string-formatting | filter-function | turtle | collection | magic-method | int | integer | exponentiation | asyncio-module | command-line-parsing | methods | touples | decimal | debugging | type-conversion | access-modifier | __all__-attribute | default-mutable-argument | goto-function | syntax | string-manipulation | identity-operator | binary | operator-or | round-function | lambdas | static-method | matrix-list-comprehension | type-conversion | method | random | mapping-function | function-and-scope | decorator | threading | expression | datetime | data-structure ...