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