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


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

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