Level 9 : Whar is the output of the following code?


a = 50
b=60
avg = (a+b)/2
print(avg)

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