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


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

Author: Devakanth | Tags: center | 1736+ Python FAQs | Share
raise | __init_subclass__ | command-line-parsing | descriptors | heap-memory | data-structure | list-method | call | goto-function | else-statement | numeric | integer | keyword | list-comprehension | datetime | operator | async | floating-point-precision | classes | encoding | exception-handling | deep-copy | bitwise-operator | built-in-function | while-else-loop | string-iteration | design-principle | min-function | assert | filter | implementation | name-mangling | map-function | stack | version | sum-function | def | statement | feature | pandas | arithmetic-operation | logical-operation | generators-in-python | debugging | memory-management | identity-operator | list-indexing | odd-number | indentation | docstring | complex-number | iterable | precedence-and-associativity | condition | global-keyword | multiprocessing | loop | datatype | zip-function | oops | method | data-structure | gil | copy | regular-expression | access-modifier | sys | control-flow | list-slicing | split | python | list-vs-tuple | overflow | decorator | namespace | string-concatenation | choice | __future__ | turtle | asyncio-module | mutable | python-django | matrix-list-comprehension | class-and-inheritance | global | fabs-function | static-method | string-slicing | collection | objects | counter-function | assignment-operator | benefit | scientific-notation | data-structures | package-management | filter-function | python_version | indexing | logical-operator | min-max-function | dictionaries | python-module | dictionary | type_conversion | lists | file-handling | built-in-function | random-function | set | input-function | memory | string-formatting | enumerate() | file | virtual-environment | input-function | formal-and-actual-parameter | yield | lambdas | immutable-data-type | array | identity-operator | id-function | factorial-function | interpreter | error | print-statement | mathematical-function | conversion | magic-method | match | loops | syntaxerror | default-mutable-argument | attribute | arithmetic-expression | decimal | operators | touples | application | context-manager | center | round-function | matplotlib | list-operation | operand | string-method | pickling-&-unpickling | bitwise | object-attribute | constructor | list | function-argument | max-min | collections | control-flow | mysql | while-and-for-loop | inheritance | module | string-manipulation | list-mutation | input | global-variable | conditional-statement | recursion | operator-or | polymorphism | sys-module | matrix | type-conversion | comparison | parameter | conditional-statement | loop-control | frozenset | syntax-error | data-type | int | sorted | class | format | range | functional-programming | immutability | exception-handling | expression | functions | escape-operator | slicing | built-in | oop | asyncio | version-check | mapping-function | import-method | global-variable | compute | virtual-environment | zfill-function | thread | sorting | return-statement | class-and-instance-variable | bitwise-operator | data_structure | lambda-function | complex | variable | identifier | file-handling | type-conversion | python-history | syntax-error | counter | __all__-attribute | function-and-scope | class-and-object | string-method | function | string-slicing | typeerror | destructor | installation | exponentiation | recurssion | set-operation | generator | operator-overloading | append | boolean-and-non-boolean | higher-order-function | round | multiple-inheritance | head-and-tail | shallow-copy | namedtuple | for | dicts | comprehension | string | mathematics | precedence | rollback | pseudocode | string-formatting | methods | logical-operator | slice | with-statement | threading | tuple | control-statement | syntax | random | postfix | operations | regex | while-loop | lambda | list-join | encapsulation | binary | file_handling | basic | data-type | exception | print | python-repl | init | nested-loop | update | math | software-design | multithreading | error-handling | numpy | iterator | inherit | pep | list-comprehension | math-copysign | staticmethod | zip | invalid-list | swapping | join | boolean | library | binary-operation | comment | operator-and | expand-tab | sum() | generators | tuple-unpacking ...