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


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

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