Level 4 : What will be the output of this statement?


>>> str1 = "javat"  
>>> str2 = ":"  
>>> str3 = "point"  
>>> str1[-1:]

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