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