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


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

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