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 | 1736+ Python FAQs | Share
functional-programming | string-method | library | invalid-list | raise | syntax-error | factorial-function | inheritance | zfill-function | object-attribute | logical-operator | match | slice | with-statement | encoding | built-in | min-function | scientific-notation | loops | sys | global-keyword | filter-function | mysql | built-in-function | operations | memory-management | objects | head-and-tail | input-function | higher-order-function | memory | iterable | loop | arithmetic-operation | id-function | file-handling | goto-function | pep | call | lambdas | print | global-variable | dictionary | identifier | data_structure | operators | class | counter | constructor | input-function | bitwise-operator | enumerate() | identity-operator | module | __init_subclass__ | fabs-function | keyword | exception | while-and-for-loop | mathematical-function | def | decorator | global-variable | comment | debugging | heap-memory | import-method | control-statement | multiprocessing | numeric | odd-number | exception-handling | lists | expression | sorted | function | pickling-&-unpickling | package-management | counter-function | bitwise | assert | string-formatting | virtual-environment | binary-operation | recurssion | typeerror | touples | lambda-function | datatype | round-function | function-argument | functions | parameter | function-and-scope | dictionaries | datetime | map-function | bitwise-operator | software-design | integer | syntax-error | regex | matrix-list-comprehension | methods | collection | statement | python-repl | control-flow | binary | access-modifier | classes | floating-point-precision | type_conversion | generators | async | sorting | type-conversion | design-principle | postfix | turtle | conversion | boolean | regular-expression | class-and-instance-variable | command-line-parsing | python_version | gil | name-mangling | swapping | else-statement | array | iterator | while-loop | decimal | comprehension | precedence-and-associativity | python-module | namedtuple | dicts | arithmetic-expression | recursion | control-flow | benefit | encapsulation | staticmethod | int | magic-method | indentation | string-method | list-indexing | complex | operator | static-method | generators-in-python | max-min | exception-handling | syntaxerror | asyncio | string-manipulation | operand | operator-or | collections | comparison | escape-operator | global | oop | zip-function | version-check | version | string | loop-control | list-comprehension | python | sum() | filter | zip | copy | data-structures | slicing | class-and-inheritance | frozenset | mapping-function | condition | docstring | attribute | operator-overloading | pandas | formal-and-actual-parameter | default-mutable-argument | list-operation | indexing | join | conditional-statement | destructor | set-operation | polymorphism | math-copysign | tuple | mutable | __future__ | immutability | overflow | print-statement | matrix | asyncio-module | list-comprehension | python-django | complex-number | class-and-object | min-max-function | python-history | center | yield | application | input | threading | error | init | multiple-inheritance | lambda | compute | set | basic | assignment-operator | namespace | variable | list-vs-tuple | string-slicing | __all__-attribute | installation | file | list-slicing | implementation | pseudocode | precedence | type-conversion | shallow-copy | choice | feature | append | oops | list-join | while-else-loop | descriptors | stack | built-in-function | string-slicing | generator | logical-operation | data-type | syntax | logical-operator | string-concatenation | matplotlib | numpy | string-formatting | list | round | virtual-environment | list-method | operator-and | random-function | update | exponentiation | nested-loop | file_handling | inherit | immutable-data-type | conditional-statement | data-type | thread | format | math | rollback | file-handling | context-manager | for | deep-copy | data-structure | sum-function | method | mathematics | sys-module | expand-tab | return-statement | random | error-handling | data-structure | range | boolean-and-non-boolean | split | tuple-unpacking | interpreter | multithreading | identity-operator | list-mutation | string-iteration ...