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