Level 10 : What is the output of s[::2] if s = "Python"?

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