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