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