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