Level 10 : What will be the output of the following code?


print('*', "abcde".center(6), '*', sep='')

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