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 | 1736+ Python FAQs | Share
multithreading | constructor | int | logical-operator | python-repl | sorted | multiple-inheritance | operator-overloading | logical-operation | multiprocessing | static-method | attribute | type-conversion | shallow-copy | format | bitwise-operator | python-module | method | math-copysign | python-history | goto-function | for | namespace | loop-control | __init_subclass__ | mathematical-function | typeerror | dictionaries | invalid-list | syntax-error | magic-method | staticmethod | set-operation | sys | id-function | command-line-parsing | fabs-function | parameter | while-loop | sum-function | generators | feature | operators | heap-memory | immutability | escape-operator | __all__-attribute | data-structure | floating-point-precision | design-principle | comparison | oop | oops | update | tuple | gil | class | factorial-function | input-function | functions | formal-and-actual-parameter | decimal | init | functional-programming | choice | decorator | loop | implementation | call | list-method | control-flow | function-and-scope | type-conversion | expression | class-and-inheritance | sum() | with-statement | string-formatting | stack | boolean | bitwise-operator | software-design | operand | mysql | regular-expression | max-min | mathematics | built-in-function | binary-operation | list | string-concatenation | print | immutable-data-type | touples | matplotlib | list-join | syntax-error | error-handling | while-else-loop | library | def | basic | interpreter | global-keyword | keyword | file | round-function | list-indexing | sorting | mutable | append | data-type | assert | collections | min-function | counter | arithmetic-expression | data-structures | loops | matrix | map-function | built-in | iterable | print-statement | comment | global | deep-copy | version | indexing | logical-operator | type_conversion | enumerate() | class-and-object | encapsulation | binary | filter-function | conversion | integer | precedence | file-handling | debugging | string-iteration | objects | statement | class-and-instance-variable | generators-in-python | pseudocode | lambda-function | file-handling | zip-function | min-max-function | return-statement | package-management | object-attribute | conditional-statement | exception-handling | condition | filter | precedence-and-associativity | array | conditional-statement | pep | import-method | copy | inheritance | input-function | error | scientific-notation | while-and-for-loop | version-check | syntax | arithmetic-operation | center | turtle | virtual-environment | input | split | __future__ | string-formatting | function-argument | operator-and | access-modifier | control-statement | exception | else-statement | matrix-list-comprehension | exponentiation | list-mutation | list-comprehension | postfix | set | application | round | string-manipulation | name-mangling | dicts | encoding | module | context-manager | list-operation | tuple-unpacking | identity-operator | lambda | async | complex-number | overflow | odd-number | swapping | collection | counter-function | recurssion | pandas | pickling-&-unpickling | variable | function | join | list-slicing | regex | inherit | lambdas | file_handling | data_structure | control-flow | random | methods | thread | exception-handling | threading | generator | operations | global-variable | mapping-function | range | string-slicing | random-function | string-method | operator | yield | docstring | boolean-and-non-boolean | data-structure | nested-loop | indentation | list-vs-tuple | operator-or | descriptors | virtual-environment | math | classes | iterator | installation | datatype | destructor | default-mutable-argument | expand-tab | memory | polymorphism | sys-module | asyncio | string-method | raise | slicing | identifier | namedtuple | syntaxerror | comprehension | compute | python-django | python | asyncio-module | slice | higher-order-function | benefit | built-in-function | python_version | numeric | rollback | datetime | numpy | identity-operator | bitwise | lists | zfill-function | frozenset | list-comprehension | global-variable | zip | memory-management | dictionary | string | assignment-operator | match | string-slicing | head-and-tail | recursion | data-type | complex ...