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


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

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