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