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


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

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