Level 1 : what is the output of the following code?


str='datazeneral'
str.ljust(15, '-')

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