Level 10 : What is the average value of the following Python code snippet?


grade1 = 80
grade2 = 90
average = (grade1 + grade2) / 2

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