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


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

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