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