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