Level 1 : What is the output of below code?


line1='And here you can learn '
line2='You will fall in love with python '
line3='Pyhton is interpreted language '
line4=line1 + line2 + line3
print(line1.find('you'),line4.count('python'))

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