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


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

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