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