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