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